[Dovecot] variable expansion in dovecot.conf?
hi all,
does dovecot.conf support the definition/use of user variables?
e.g., in principle,
my_DIR = /path/to/something/
then,
default_mail_env = maildir:${my_DIR}/%d/Accounts/%1u/%u/Maildir
or, for that matter,
default_mail_env = blahblah
then,
namespace private {
...
location = $default_mail_env
...
i finallly figured out -- through randon thrashing -- that the simple "$" format has been causing me grief ...
and, cursory searching has not dug up anything (yet) in the man/wiki/etc.
possible? reference docs for it?
thx!
(ack to my margarita for now ...)
richard
On Sat, 2005-09-10 at 20:15 -0700, OpenMacNews wrote:
hi all,
does dovecot.conf support the definition/use of user variables?
No, and I don't think it'd be worth the trouble. Nothing prevents you from generating dovecot.conf through some preprocessor though (eg. m4)
namespace private { ... location = $default_mail_env ...
default_mail_env is used there if you simply don't set location.
hi timo,
thx for the reply =)
does dovecot.conf support the definition/use of user variables?
No, and I don't think it'd be worth the trouble. Nothing prevents you from generating dovecot.conf through some preprocessor though (eg. m4)
absolutely true ...
i just got 'used to' the ability to do so in other config files (e.g., Exim) and, naiively, i presumed too much here.
namespace private { ... location = $default_mail_env ...
default_mail_env is used there if you simply don't set location.
all clear now. thx again!
richard
participants (2)
-
OpenMacNews
-
Timo Sirainen