From 6ff3c7a1ba680506d77fc1fe8dfbf5b804a3fea7 Mon Sep 17 00:00:00 2001 From: Galen Abell Date: Tue, 3 Mar 2020 08:45:06 -0500 Subject: Mark sent messages as "seen" in maildir - Add maildir flags to complement a messages imap flags - Set the "seen" flag on sent messages when using the maildir backend - Cleanup AppendMessage interface to use models.Flag for both IMAP and maildir --- worker/imap/movecopy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'worker/imap/movecopy.go') diff --git a/worker/imap/movecopy.go b/worker/imap/movecopy.go index b01dab7..a53c7d4 100644 --- a/worker/imap/movecopy.go +++ b/worker/imap/movecopy.go @@ -28,7 +28,7 @@ func (m appendLiteral) Len() int { } func (imapw *IMAPWorker) handleAppendMessage(msg *types.AppendMessage) { - if err := imapw.client.Append(msg.Destination, msg.Flags, msg.Date, + if err := imapw.client.Append(msg.Destination, translateFlags(msg.Flags), msg.Date, &appendLiteral{ Reader: msg.Reader, Length: msg.Length, -- cgit 1.4.1-2-gfad0