Do you think it wold be worthwhile to add command line options to "deliver" and "imap" to make them ignore "system wide" configuration file and use ~/.dovecotrc instead?
I would like to use "imap via fetchmail ssh plugin" and "deliver via ~/.forward (to get sieve support)". Such options would allow "cleaner" configuration.
-- [pl>en: Andrew] Andrzej Adam Filip : anfi@onet.eu : anfi@xl.wp.pl Nice boy, but about as sharp as a sack of wet mice. -- Foghorn Leghorn
On Wed, 2009-01-14 at 22:21 +0100, Andrzej Adam Filip wrote:
Do you think it wold be worthwhile to add command line options to "deliver" and "imap" to make them ignore "system wide" configuration file and use ~/.dovecotrc instead?
How about:
dovecot -c ~/.dovecotrc deliver -c ~/.dovecotrc
Timo Sirainen tss@iki.fi wrote:
On Wed, 2009-01-14 at 22:21 +0100, Andrzej Adam Filip wrote:
Do you think it wold be worthwhile to add command line options to "deliver" and "imap" to make them ignore "system wide" configuration file and use ~/.dovecotrc instead?
How about:
dovecot -c ~/.dovecotrc
I need "single IMAP session via stdin/stdout". I think you meant: dovecot -c ~/.dovecotrc --exec-mail imap
As I understand imap command supports no command line options [1.0.15] Can "full imap command configuration" be achieved via MAIL and MBOX_LOCKS environment variables?
deliver -c ~/.dovecotrc
OK.
P.S. dovecot imap works great with fetchmail - I achieved "*very* short delay" delivery
- "ssh host .../imap" as --plugin
- procmail as --mda (procmail calls "deliver -e")
- --idle option)
I just want to ask a few questions, polish the final bits and finally "set and forget" ;-)
Thanks :-)
-- [pl>en: Andrew] Andrzej Adam Filip : anfi@onet.eu : anfi@xl.wp.pl There is an old time toast which is golden for its beauty. "When you ascend the hill of prosperity may you not meet a friend." -- Mark Twain
On Wed, 2009-01-14 at 23:08 +0100, Andrzej Adam Filip wrote:
Timo Sirainen tss@iki.fi wrote:
On Wed, 2009-01-14 at 22:21 +0100, Andrzej Adam Filip wrote:
Do you think it wold be worthwhile to add command line options to "deliver" and "imap" to make them ignore "system wide" configuration file and use ~/.dovecotrc instead?
How about:
dovecot -c ~/.dovecotrc
I need "single IMAP session via stdin/stdout". I think you meant: dovecot -c ~/.dovecotrc --exec-mail imap
As I understand imap command supports no command line options [1.0.15]
Right.
Can "full imap command configuration" be achieved via MAIL and MBOX_LOCKS environment variables?
Yes, all settings are passed via environment. They're not documented anywhere though (but http://wiki.dovecot.org/PostLoginScripting gives some hints). But what's wrong with using --exec-mail?
Timo Sirainen tss@iki.fi wrote:
On Wed, 2009-01-14 at 23:08 +0100, Andrzej Adam Filip wrote:
Timo Sirainen tss@iki.fi wrote:
On Wed, 2009-01-14 at 22:21 +0100, Andrzej Adam Filip wrote:
Do you think it wold be worthwhile to add command line options to "deliver" and "imap" to make them ignore "system wide" configuration file and use ~/.dovecotrc instead?
How about:
dovecot -c ~/.dovecotrc
I need "single IMAP session via stdin/stdout". I think you meant: dovecot -c ~/.dovecotrc --exec-mail imap
As I understand imap command supports no command line options [1.0.15]
Right.
Can "full imap command configuration" be achieved via MAIL and MBOX_LOCKS environment variables?
Yes, all settings are passed via environment. They're not documented anywhere though (but http://wiki.dovecot.org/PostLoginScripting gives some hints).
But what's wrong with using --exec-mail?
Perfection is attained, not when no more can be added, but when no more can be removed. -- Antoine de Saint Exupery
It is a matter of preferences. I prefer avoiding use of extra piece of code not needed for what I need [(pre-authenticated) stdin/stdout imap session]. It reduces number of places where "things may go wrong" :-)
-- [pl>en: Andrew] Andrzej Adam Filip : anfi@onet.eu : anfi@xl.wp.pl If you write something wrong enough, I'll be glad to make up a new witticism just for you. -- Larry Wall in 199702221943.LAA20388@wall.org
On Thu, 2009-01-15 at 00:06 +0100, Andrzej Adam Filip wrote:
Can "full imap command configuration" be achieved via MAIL and MBOX_LOCKS environment variables?
Yes, all settings are passed via environment. They're not documented anywhere though (but http://wiki.dovecot.org/PostLoginScripting gives some hints).
But what's wrong with using --exec-mail?
Perfection is attained, not when no more can be added, but when no more can be removed. -- Antoine de Saint Exupery
It is a matter of preferences. I prefer avoiding use of extra piece of code not needed for what I need [(pre-authenticated) stdin/stdout imap session]. It reduces number of places where "things may go wrong" :-)
Well, the --exec-mail interface is going to work with future Dovecot versions, but there are no guarantees about how the environment variables will work. There are going to be at least some changes to them in v1.3. But I guess it depends on how complex configuration you need, at least the MAIL environment will work in future as well.
participants (2)
-
Andrzej Adam Filip
-
Timo Sirainen