aboutsummaryrefslogtreecommitdiffstats
path: root/worker
diff options
context:
space:
mode:
Diffstat (limited to 'worker')
-rw-r--r--worker/maildir/worker.go11
1 files changed, 4 insertions, 7 deletions
diff --git a/worker/maildir/worker.go b/worker/maildir/worker.go
index de7e8e89..fe4425e2 100644
--- a/worker/maildir/worker.go
+++ b/worker/maildir/worker.go
@@ -663,13 +663,10 @@ func (w *Worker) handleCopyMessages(msg *types.CopyMessages) error {
func (w *Worker) handleMoveMessages(msg *types.MoveMessages) error {
dest := w.c.Store.Dir(msg.Destination)
moved, err := w.c.MoveAll(dest, *w.selected, msg.Uids)
- destInfo := w.getDirectoryInfo(msg.Destination)
- w.worker.PostMessage(&types.DirectoryInfo{
- Info: destInfo,
- }, nil)
- w.worker.PostMessage(&types.MessagesDeleted{
- Message: types.RespondTo(msg),
- Uids: moved,
+ w.worker.PostMessage(&types.MessagesMoved{
+ Message: types.RespondTo(msg),
+ Destination: msg.Destination,
+ Uids: moved,
}, nil)
return err
}