[Dovecot] dovecot expire doesn't work (?)

Timo Sirainen tss at iki.fi
Thu Oct 30 17:42:16 EET 2008


On Thu, 2008-10-30 at 16:28 +0100, LÉVAI Dániel wrote:
> I've got bitten by this:
> The wiki[1] reads:
> 
> [...]
>  - "%" works by matching any number of characters, but it stops at the 
> hierarchy separator. Currently the separator is hardcoded to "/".
> [...]
> plugin {
>   # Trash and its children 7d, Spam 30d
>   expire = Trash 7 Trash/* 7 Spam 30
> [...]
> 
> That is not exactly true. The separator which is working (as told me by 
> e-frog, and as can be seen in the Maildir/ hierarchy) is the dot 
> character (ie.: .).

The "/" hardcoding only means the "%" wildcard matching, meaning if
you've a mailbox "foo/bar" then "%" would match only "foo" part, but if
you've a mailbox "foo.bar" then "%" would match the full "foo.bar". In
any case you'll need to use the separator you've configured in your
namespaces. I guess wiki should explain this clearly. Or better yet, I
could fix the whole issue and remove it from wiki. :)

> Also the dovecot-example.conf says:
> "The following dict block maps dictionary names to URIs when the server 
> is used. These can then be referenced using URIs in 
> format "proxy:<name>"."
> 
> That is not true either, it must be "proxy::<name>" (note the two 
> colons) or else dovecot won't even start.

Fixed now.

> Yep, now I can understand that, but what *is* weird, that the 
> only "debug" information comes from this expire-tool when ran with 
> the --test option. If I run it without it, it won't output anything 
> anywhere. It would be nice to increase the logging for this (with or 
> without the --test option), eg. when mail_debug=yes.

What should it write? I guess -v parameter could do something.
mail_debug=yes could affect the plugin's logging.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20081030/ab15d569/attachment.bin 


More information about the dovecot mailing list