diff options
author | Galen Abell <galen@galenabell.com> | 2020-03-03 08:45:06 -0500 |
---|---|---|
committer | Reto Brunner <reto@labrat.space> | 2020-03-03 20:08:37 +0100 |
commit | 6ff3c7a1ba680506d77fc1fe8dfbf5b804a3fea7 (patch) | |
tree | 093c49f4dc7fbc80adedb5f6c05a76bc697e44b6 /worker/imap/fetch.go | |
parent | 68f179021d304d6edf939ecf5fc7d0d073b16152 (diff) | |
download | aerc-6ff3c7a1ba680506d77fc1fe8dfbf5b804a3fea7.tar.gz |
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
Diffstat (limited to 'worker/imap/fetch.go')
-rw-r--r-- | worker/imap/fetch.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/worker/imap/fetch.go b/worker/imap/fetch.go index bf60aa91..f1311179 100644 --- a/worker/imap/fetch.go +++ b/worker/imap/fetch.go @@ -91,7 +91,7 @@ func (imapw *IMAPWorker) handleFetchMessages( Info: &models.MessageInfo{ BodyStructure: translateBodyStructure(_msg.BodyStructure), Envelope: translateEnvelope(_msg.Envelope), - Flags: translateFlags(_msg.Flags), + Flags: translateImapFlags(_msg.Flags), InternalDate: _msg.InternalDate, RFC822Headers: header, Uid: _msg.Uid, @@ -115,7 +115,7 @@ func (imapw *IMAPWorker) handleFetchMessages( imapw.worker.PostMessage(&types.MessageInfo{ Message: types.RespondTo(msg), Info: &models.MessageInfo{ - Flags: translateFlags(_msg.Flags), + Flags: translateImapFlags(_msg.Flags), Uid: _msg.Uid, }, }, nil) @@ -136,7 +136,7 @@ func (imapw *IMAPWorker) handleFetchMessages( imapw.worker.PostMessage(&types.MessageInfo{ Message: types.RespondTo(msg), Info: &models.MessageInfo{ - Flags: translateFlags(_msg.Flags), + Flags: translateImapFlags(_msg.Flags), Uid: _msg.Uid, }, }, nil) |