Re: autoexpunge wildcard mailbox from userdb

2016-05-02 Thread Leon Kyneur



On 02/05/16 21:43, Timo Sirainen wrote:

On 02 May 2016, at 16:40, Leon Kyneur  wrote:



On 02/05/16 16:51, Timo Sirainen wrote:

On 02 May 2016, at 03:47, Leon Kyneur  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

Why? I would expect mailbox * { autoexpunge } to work.



Ahh it does! my syntax was just off..

Thanks again Timo!


Re: autoexpunge wildcard mailbox from userdb

2016-05-02 Thread Timo Sirainen
On 02 May 2016, at 16:40, Leon Kyneur  wrote:
> 
> 
> 
> On 02/05/16 16:51, Timo Sirainen wrote:
>> On 02 May 2016, at 03:47, Leon Kyneur  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

Why? I would expect mailbox * { autoexpunge } to work.


Re: autoexpunge wildcard mailbox from userdb

2016-05-02 Thread Leon Kyneur



On 02/05/16 16:51, Timo Sirainen wrote:

On 02 May 2016, at 03:47, Leon Kyneur  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


Re: autoexpunge wildcard mailbox from userdb

2016-05-02 Thread Timo Sirainen
On 02 May 2016, at 03:47, Leon Kyneur  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").


autoexpunge wildcard mailbox from userdb

2016-05-01 Thread Leon Kyneur
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