aboutsummaryrefslogtreecommitdiffstats
path: root/worker/maildir/worker.go
diff options
context:
space:
mode:
Diffstat (limited to 'worker/maildir/worker.go')
-rw-r--r--worker/maildir/worker.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/worker/maildir/worker.go b/worker/maildir/worker.go
index f0c92ed3..a5416cc6 100644
--- a/worker/maildir/worker.go
+++ b/worker/maildir/worker.go
@@ -327,8 +327,9 @@ func (w *Worker) handleReadMessages(msg *types.ReadMessages) error {
}
func (w *Worker) handleCopyMessages(msg *types.CopyMessages) error {
- // TODO: this.
- return nil
+ defer w.done(msg)
+ dest := w.c.Dir(msg.Destination)
+ return w.c.CopyAll(dest, *w.selected, msg.Uids)
}
func (w *Worker) handleAppendMessage(msg *types.AppendMessage) error {