> On Feb 7, 2016, at 10:59 AM, Timo Sirainen <tss at iki.fi> wrote: >> On 07 Feb 2016, at 04:50, Tom Johnson <tj at terramar.net> wrote: >> >> I have some users where I'd like to expunge their mail at different times. >> .... >> .... >> Is there a way to do some sort of lookup for this? Or is this beyond the ability of the autoexpunge feature? Should I just use a cron job and use "doveadm expunge" on a user-by-user basis? > > You can override any mail-related setting from userdb. So for example if you have: > > namespace inbox { > mailbox Trash { > autoexpunge = 30d > } > } > > You can have your userdb return namespace/inbox/Trash/autoexpunge=90d extra field for other users. http://wiki2.dovecot.org/UserDatabase/ExtraFields has some examples.Thank you, Timo! Can you return something like "namespace/inbox/*/autoexpuge=90d" to cover all the namespaces? And then override individual ones if necessary?
> On 08 Feb 2016, at 06:46, Tom Johnson <tj at terramar.net> wrote: > >> You can override any mail-related setting from userdb. So for example if you have: >> >> namespace inbox { >> mailbox Trash { >> autoexpunge = 30d >> } >> } >> >> You can have your userdb return namespace/inbox/Trash/autoexpunge=90d extra field for other users. http://wiki2.dovecot.org/UserDatabase/ExtraFields has some examples. > > Thank you, Timo! > > Can you return something like "namespace/inbox/*/autoexpuge=90d" to cover all the namespaces? And then override individual ones if necessary?It would mean the same as: namespace inbox { mailbox * { autoexpunge = 90d } } So the question is about whether the above configuration works. Currently it doesn't, but it probably will in future.
> On Feb 8, 2016, at 2:02 AM, Timo Sirainen <tss at iki.fi> wrote: > >> >> On 08 Feb 2016, at 06:46, Tom Johnson <tj at terramar.net> wrote: >> >> Can you return something like "namespace/inbox/*/autoexpuge=90d" to cover all the namespaces? And then override individual ones if necessary? > > It would mean the same as: > > namespace inbox { > mailbox * { > autoexpunge = 90d > } > } > > So the question is about whether the above configuration works. Currently it doesn't, but it probably will in future.Does this mean that you can't use autoexpunge on the main inbox for a user at all?