diff options
-rw-r--r-- | worker/imap/flags.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/worker/imap/flags.go b/worker/imap/flags.go index ccb8c107..7ff6de37 100644 --- a/worker/imap/flags.go +++ b/worker/imap/flags.go @@ -30,10 +30,10 @@ func (imapw *IMAPWorker) handleDeleteMessages(msg *types.DeleteMessages) { } func (imapw *IMAPWorker) handleAnsweredMessages(msg *types.AnsweredMessages) { - item := imap.FormatFlagsOp(imap.AddFlags, true) + item := imap.FormatFlagsOp(imap.AddFlags, false) flags := []interface{}{imap.AnsweredFlag} if !msg.Answered { - item = imap.FormatFlagsOp(imap.RemoveFlags, true) + item = imap.FormatFlagsOp(imap.RemoveFlags, false) flags = []interface{}{imap.AnsweredFlag} } imapw.handleStoreOps(msg, msg.Uids, item, flags, @@ -51,9 +51,9 @@ func (imapw *IMAPWorker) handleAnsweredMessages(msg *types.AnsweredMessages) { func (imapw *IMAPWorker) handleFlagMessages(msg *types.FlagMessages) { flags := []interface{}{flagToImap[msg.Flag]} - item := imap.FormatFlagsOp(imap.AddFlags, true) + item := imap.FormatFlagsOp(imap.AddFlags, false) if !msg.Enable { - item = imap.FormatFlagsOp(imap.RemoveFlags, true) + item = imap.FormatFlagsOp(imap.RemoveFlags, false) } imapw.handleStoreOps(msg, msg.Uids, item, flags, func(_msg *imap.Message) error { |