Thorsten Vollmer
2008-Nov-04 16:36 UTC
[Dovecot] expire-tool fails if mail_location contains %h
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. Regards, Thorsten -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 489 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20081104/8370f742/attachment-0002.bin>
Timo Sirainen
2008-Nov-21 20:26 UTC
[Dovecot] expire-tool fails if mail_location contains %h
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: signature.asc 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-0002.bin>