[Dovecot] expire-tool fails if mail_location contains %h

Timo Sirainen tss at iki.fi
Fri Nov 21 22:26:44 EET 2008

On Tue, 2008-11-04 at 17:36 +0100, Thorsten Vollmer wrote:
> Hi Timo,
> not long ago you fixed a bug regarding the expansion of ~/ in
> mail_location that prevented expire-tool from working correctly. A
> similar problem exists if mail_location contains %h: expire-tool will
> use the wrong path to access the mailbox. After replacing %h with ~,
> expire-tool works as expected.
> Why are there two variables for the home directory? Maybe the use of %h
> could be discouraged, sparing you some problems.

In earlier versions ~/ expansion didn't work everywhere so %h is used in
examples because of that. But nowadays ~/ expansion does work
everywhere, so %h is a bit pointless in most places. Also the %h (just
like all %variable) expansion happens early in the configuration
parsing, so expire-tool can't really be fixed to handle %h.

Well, I added a note now to http://wiki.dovecot.org/Variables and
removed %h from http://wiki.dovecot.org/MailLocation. I don't really
have better ideas how to discourage it.

-------------- 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/20081121/5ce0d24c/attachment.bin 

More information about the dovecot mailing list