Was excited to see that wildcards are now possible on autoexpunge in the 2.2.24 release. However I'm trying to configure these from the userdb lookup and it doesn't appear to be working. if I set in 15-mailboxes.conf mailbox Trash/* { ... autoexpunge = 10m } everything works.. however if I return =namespace/inbox/mailbox/Trash/*/autoexpunge=10m via userdb - it does not. Logs say: Debug: Unknown userdb setting: plugin/namespace/inbox/mailbox/Trash/*/autoexpunge=10m Is what I am trying to do even possible? Thanks Leon
On 02 May 2016, at 03:47, Leon Kyneur <leon at f-m.fm> wrote:> > Was excited to see that wildcards are now possible on autoexpunge in the 2.2.24 release. > > However I'm trying to configure these from the userdb lookup and it doesn't appear to be working. > > if I set in 15-mailboxes.conf > mailbox Trash/* { > ... > autoexpunge = 10m > } > > everything works.. > > however if I return > > =namespace/inbox/mailbox/Trash/*/autoexpunge=10mUsing "/" in the namespace name conflicts with the "/" separator, so it needs to be escaped. You can use "doveconf -n -S" to find out what the escaping needs to look like ("/" = "\s").
On 02/05/16 16:51, Timo Sirainen wrote:> On 02 May 2016, at 03:47, Leon Kyneur <leon at f-m.fm> wrote: >> Was excited to see that wildcards are now possible on autoexpunge in the 2.2.24 release. >> >> However I'm trying to configure these from the userdb lookup and it doesn't appear to be working. >> >> if I set in 15-mailboxes.conf >> mailbox Trash/* { >> ... >> autoexpunge = 10m >> } >> >> everything works.. >> >> however if I return >> >> =namespace/inbox/mailbox/Trash/*/autoexpunge=10m > Using "/" in the namespace name conflicts with the "/" separator, so it needs to be escaped. You can use "doveconf -n -S" to find out what the escaping needs to look like ("/" = "\s"). >Thanks Timo - that's what I was missing. Another thing - will it ever be possible to wildcard *all* mailboxes? My setup doesn't specify prefix = INBOX/ on "namespace inbox"... without knowing all of the root mailboxes users have created is it possible to autoexpunge these? This obviously does not work =namespace/inbox/mailbox/\s*/autoexpunge=90d
Maybe Matching Threads
- autoexpunge wildcard mailbox from userdb
- autoexpunge - different settings for different users
- Panic: file mdbox-save.c: line 337: unreached
- autoexpunge - different settings for different users
- How to set autoexpunge rule for single user mailbox in dovecot conf?