[Dovecot] deliver not picking up INDEX setting?
I'm using the post-login script approach to give more customisation to where our users can store their mail. It detects the location and type of the mailbox at runtime and passes it through using the environment to imapd. This works great.
However, I can't seem to make deliver do the same. I pass it the same MAIL and NAMESPACE settings in the environment:
MAIL=maildir:/home/cur/tdb/Maildir:INDEX=/var/state/dovecot-indexes/tdb NAMESPACE_1=maildir:/home/cur/tdb/Maildir:INDEX=/var/state/dovecot-indexes/tdb NAMESPACE_1_INBOX=1 NAMESPACE_1_LIST=1 NAMESPACE_1_PREFIX=INBOX. NAMESPACE_1_SEP=. NAMESPACE_1_SUBSCRIPTIONS=1 NAMESPACE_1_TYPE=private (plus some others set by my MTA)
So INDEX appears to be set correctly.
deliver does correctly pick up the mailbox location and has no trouble delivering mail, but the indexes are put in the Maildir directory and not under the indexes directory.
Is it possible to make deliver respect the INDEX setting?
Thanks,
Tim.
-- Tim Bishop http://www.bishnet.net/tim/ PGP Key: 0x5AE7D984
On Sat, 2008-10-18 at 13:54 +0100, Tim Bishop wrote:
I'm using the post-login script approach to give more customisation to where our users can store their mail. It detects the location and type of the mailbox at runtime and passes it through using the environment to imapd. This works great.
However, I can't seem to make deliver do the same. I pass it the same MAIL and NAMESPACE settings in the environment:
I don't think you can give any settings to deliver via environment since it'll just override them by reading them from dovecot.conf. So you'd probably have to generate dovecot.conf files for deliver.
participants (2)
-
Tim Bishop
-
Timo Sirainen