19 Oct
2022
19 Oct
'22
5:52 a.m.
On 10/19/22 07:46, Steve Litt wrote:
for MAILBOX in $USERS; do doveadm expunge -u "$MAILBOX" mailbox Trash savedbefore 7d doveadm expunge -u "$MAILBOX" mailbox Spam savedbefore 30d doveadm purge -u "$MAILBOX"
LOCATION2="mdbox:/srv/snap_mail/$MAILBOX/mdbox" doveadm -v backup -u "$MAILBOX" -P "$LOCATION2"
done
Do you think the preceding shellscript will work if I store my Dovecot messages in the Maildir form?
It would, including this part: LOCATION2="mdbox:..." You can use that as a way to convert between storage formats. Or not. Specify what is needed.