On 12/11/2024 07:12, Sirius via dovecot wrote:
On Tue, 2024/11/12 at 03:45:57 +0100, Ralph Seichter via dovecot wrote:
DATESTR=$(date --date='TZ="UTC" 0 2 week ago' +'%d-%b-%Y')
doveadm expunge -u <user> mailbox Trash before ${DATESTR}
I'm new to Dovecot. I've seen a few examples on the internet like this
and I am wondering what is the advantage of this format of the command
over one of these:
doveadm expunge -u <user> mailbox Trash before 14d
doveadm expunge -u <user> mailbox Trash before 2w
It seems relatively complicated to manipulate date strings compared to
using d or w operators.
_______________________________________________
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org