export more imap flags (eg $Junk/$NotJunk/$Forwarded) with maildirs, in dovecot-keywords file

and let the subcommand "export" use the same export code as the accounts page.
This commit is contained in:
Mechiel Lukkien
2023-02-13 22:37:25 +01:00
parent b349010e3d
commit 4a58b8f434
5 changed files with 177 additions and 241 deletions

View File

@ -161,7 +161,7 @@ func accountHandle(w http.ResponseWriter, r *http.Request) {
log.Errorx("exporting mail close", err)
}
}()
if err := acc.ExportMessages(log, archiver, maildir, ""); err != nil {
if err := store.ExportMessages(log, acc.DB, acc.Dir, archiver, maildir, ""); err != nil {
log.Errorx("exporting mail", err)
}