From 0535f6333f2f5d13469fc315a65c53ff8a5e83f3 Mon Sep 17 00:00:00 2001 From: ARaspiK Date: Sun, 5 Jul 2020 14:29:52 +0000 Subject: Add additional flagging functionality More mail flags can now be set, unset, and toggled, not just the read/seen flag. This functionality is implemented with a new `:flag` and `:unflag` command, which are extensions to the matching `:read` and `:unread` commands, adding support for different flags. In fact, the `read`/`unread` commands are now recognized aliases to `flag`/`unflag`. The new commands are also well documented in aerc(1). The change mostly extends the previous read/unread setting functionality by adding a selection for the flag to change. --- worker/imap/worker.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'worker/imap/worker.go') diff --git a/worker/imap/worker.go b/worker/imap/worker.go index a43ac49e..0be51d71 100644 --- a/worker/imap/worker.go +++ b/worker/imap/worker.go @@ -173,8 +173,8 @@ func (w *IMAPWorker) handleMessage(msg types.WorkerMessage) error { w.handleFetchFullMessages(msg) case *types.DeleteMessages: w.handleDeleteMessages(msg) - case *types.ReadMessages: - w.handleReadMessages(msg) + case *types.FlagMessages: + w.handleFlagMessages(msg) case *types.AnsweredMessages: w.handleAnsweredMessages(msg) case *types.CopyMessages: -- cgit