Getting autoexpunge to work
dovecot 2.2.33.2 (d6601f4ec) on Ubuntu 18.04
The recent announcement that expunge is going to be deprecated and that autoexpunge should be used instead reminded me that my recent switch over to autoexpunge is not working.
There has been an active discussion today about getting expunge working so I thought I'd use the commands suggested there to figure out why autoexpunge might not be doing anything.
"doveadm search -u local-finance-support mailbox INBOX savedbefore 12w" returns nothing even though the first email for that user is dated November 12th 2019.
Using the message ID for that first email, I then tried this:
doveadm search -u local-finance-support HEADER MESSAGE-ID "CAHgKB_f5ttC3kLgxgZiNzwyySvUfb-NXodqZ7K3+dkHKCOUwhg@mail.gmail.com"
f55e9737e270c2564d1a0000e171d23e 37
then
doveadm fetch -u local-finance-support "mailbox date.saved" UID 37
mailbox: INBOX date.saved: 2020-03-17 14:34:12
Why on earth is dovecot showing today's date for that message? What have I misunderstood or misconfigured?
Regards
Philip
On 17 Mar 2020, at 16.42, Philip Colmer philip.colmer@linaro.org wrote:
doveadm fetch -u local-finance-support "mailbox date.saved" UID 37
mailbox: INBOX date.saved: 2020-03-17 14:34:12
Why on earth is dovecot showing today's date for that message? What have I misunderstood or misconfigured?
Depends a lot on what is your mailbox storage driver.
Sami
On Tue, 17 Mar 2020 at 15:47, Sami Ketola sami.ketola@dovecot.fi wrote:
On 17 Mar 2020, at 16.42, Philip Colmer philip.colmer@linaro.org wrote:
doveadm fetch -u local-finance-support "mailbox date.saved" UID 37
mailbox: INBOX date.saved: 2020-03-17 14:34:12
Why on earth is dovecot showing today's date for that message? What have I misunderstood or misconfigured?
Depends a lot on what is your mailbox storage driver.
How do I determine what that is, please? I've included the output of doveconf -n below.
Philip
# 2.2.33.2 (d6601f4ec): /etc/dovecot/dovecot.conf # Pigeonhole version 0.4.21 (92477967) # OS: Linux 4.15.0-1041-aws x86_64 Ubuntu 18.04.3 LTS auth_username_format = %Ln auth_verbose = yes disable_plaintext_auth = no listen = 127.0.0.1 mail_location = mbox:~/mail:INBOX=/var/mail/%u mail_privileged_group = mail mailbox_list_index = yes namespace inbox { inbox = yes location = mailbox Drafts { special_use = \Drafts } mailbox INBOX { autoexpunge = 12 weeks } mailbox Junk { special_use = \Junk } mailbox Sent { special_use = \Sent } mailbox "Sent Messages" { special_use = \Sent } mailbox Trash { special_use = \Trash } prefix = } passdb { driver = pam } protocols = " imap lmtp" service lmtp { unix_listener /var/spool/postfix/private/dovecot-lmtp { group = postfix mode = 0600 user = postfix } } ssl = no ssl_cert =
Sami
participants (2)
-
Philip Colmer
-
Sami Ketola