From b0bf09b98fc038c1bc9921d568c06260b7448a15 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Wed, 15 May 2019 19:41:21 -0400 Subject: Copy sent emails to the Sent folder Or rather, to a user-specified folder --- worker/imap/worker.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'worker/imap/worker.go') diff --git a/worker/imap/worker.go b/worker/imap/worker.go index 1fab3bb..5dce18e 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 } -- cgit 1.4.1-2-gfad0