autoexpunge=30d does not works :(

Thomas Leuxner tlx at leuxner.net
Fri Dec 16 13:36:11 UTC 2016


* Peter Hodur <petehodur at gmail.com> 2016.12.16 11:42:

>         mailbox Spam {
>                 auto                                            = subscribe
>                 special_use                                     = \Junk
>                 autoexpunge                                     = 30d

Hi Peter,

may be easier to use per-user settings for testing. Something along the line:

userdb_namespace/inbox/mailbox/Spam/autoexpunge=6h

> As I hope, when user logout (POP3 or IMAP) or after Postfix delivers mail
> via LMTP, Dovecot should check Spam folder for emails, which have ctime
> older than 30 days and deletes this emails.

AFAIK it uses indexes rather than FS attributes, let's see if this query yields some candidates (adjust time):

$ doveadm search -u peter  mailbox Spam savedsince 6h

Regards
Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://dovecot.org/pipermail/dovecot/attachments/20161216/a28fa107/attachment.sig>


More information about the dovecot mailing list