aboutsummaryrefslogtreecommitdiffstats
path: root/worker/imap/worker.go
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-05-15 19:41:21 -0400
committerDrew DeVault <sir@cmpwn.com>2019-05-15 19:41:21 -0400
commitb0bf09b98fc038c1bc9921d568c06260b7448a15 (patch)
treeacad72b3ec224d95c551a11ba35cf4e8522641e1 /worker/imap/worker.go
parent52b318127fe7ec001ca824947193b2cb7b0ebda6 (diff)
downloadaerc-b0bf09b98fc038c1bc9921d568c06260b7448a15.tar.gz
Copy sent emails to the Sent folder
Or rather, to a user-specified folder
Diffstat (limited to 'worker/imap/worker.go')
-rw-r--r--worker/imap/worker.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/worker/imap/worker.go b/worker/imap/worker.go
index 1fab3bbf..5dce18e0 100644
--- a/worker/imap/worker.go
+++ b/worker/imap/worker.go
@@ -153,6 +153,8 @@ func (w *IMAPWorker) handleMessage(msg types.WorkerMessage) error {
}
}
+ c.SetDebug(w.worker.Logger.Writer())
+
if _, err := c.Select(imap.InboxName, false); err != nil {
return err
}
@@ -176,6 +178,8 @@ func (w *IMAPWorker) handleMessage(msg types.WorkerMessage) error {
w.handleDeleteMessages(msg)
case *types.CopyMessages:
w.handleCopyMessages(msg)
+ case *types.AppendMessage:
+ w.handleAppendMessage(msg)
default:
return errUnsupported
}