[Dovecot] Doing %var-substitutions in a plugin...
Nicolas Boullis
nicolas.boullis at ecp.fr
Fri Mar 2 14:16:51 EET 2007
Johannes Berg wrote:
>
> As far as I know there isn't such a way. I recently worked around this
> by appending something to the mail path, i.e.
>
> default_mail_env = maildir:/home/%u/.mail/:MYPLUGIN=%u-%n-%d
>
> and then reading the MAIL environment and parsing out the :MYPLUGIN=
> part. Works great.
Oh... I just figured out that the plugin configuration in
/etc/dovecot/dovecot.conf already gets %var-substituted, so I don't need
to perform any veriable-substitution in the plugin.
Thanks anyway for the suggestion,
Nicolas
More information about the dovecot
mailing list