diff options
author | Koni Marti <koni.marti@gmail.com> | 2022-07-11 20:11:21 +0200 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2022-07-14 23:14:56 +0200 |
commit | e572087e58aaa36b6fdbf0086491907c9169efb0 (patch) | |
tree | 0c51ed1252b9367c7e52221b905523a4be9a4c37 /worker | |
parent | 845763cb1f1f8b7acdfc8e94e0a2d61ff78f6b9d (diff) | |
download | aerc-e572087e58aaa36b6fdbf0086491907c9169efb0.zip |
account: import mbox file to a folder
Append all messages from an mbox file to the selected folder with the
import-mbox command.
User confirmation is required when the folder already contains messages.
A failed append will be retried a few times. If a backend timeout
occurs, the entire import is stopped to prevent a hang.
Signed-off-by: Koni Marti <koni.marti@gmail.com>
Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'worker')
-rw-r--r-- | worker/maildir/worker.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/worker/maildir/worker.go b/worker/maildir/worker.go index b217bd2..222b672 100644 --- a/worker/maildir/worker.go +++ b/worker/maildir/worker.go @@ -666,7 +666,9 @@ func (w *Worker) handleAppendMessage(msg *types.AppendMessage) error { w.worker.Logger.Printf("could not write message to destination: %v", err) return err } - + w.worker.PostMessage(&types.Done{ + Message: types.RespondTo(msg), + }, nil) w.worker.PostMessage(&types.DirectoryInfo{ Info: w.getDirectoryInfo(msg.Destination), }, nil) |