add !pm stripify option

This commit is contained in:
Aine
2024-02-26 20:42:37 +02:00
parent ba1a8c8390
commit 271a4a0e31
14 changed files with 442 additions and 13 deletions

View File

@@ -23,6 +23,7 @@ const (
RoomAutoreply = "autoreply"
RoomThreadify = "threadify"
RoomStripify = "stripify"
RoomNoCC = "nocc"
RoomNoFiles = "nofiles"
RoomNoHTML = "nohtml"
@@ -84,6 +85,10 @@ func (s Room) Threadify() bool {
return utils.Bool(s.Get(RoomThreadify))
}
func (s Room) Stripify() bool {
return utils.Bool(s.Get(RoomStripify))
}
func (s Room) NoSend() bool {
return utils.Bool(s.Get(RoomNoSend))
}
@@ -198,6 +203,7 @@ func (s Room) ContentOptions() *email.ContentOptions {
Recipient: !s.NoRecipient(),
Subject: !s.NoSubject(),
Threads: !s.NoThreads(),
Stripify: s.Stripify(),
Threadify: s.Threadify(),
ToKey: "cc.etke.postmoogle.to",