[Dovecot] deliver: -m, sieve and -n
Hi,
I took a stab at editing the wiki ... the changes disappeared? I guess I was overruled.
The wiki (http://wiki.dovecot.org/LDA) states
-m <mailbox>: Destination mailbox (default is INBOX). If the mailbox doesn't exist, it's created (unless -n is used). If message couldn't be saved to the mailbox for any reason, it's delivered to INBOX instead.
I tried to add a little note that the sieve plugin takes precedence. For example if at the end of the a .dovecot.sieve there is a line like:
fileinto "CompanyFolders.general";
then the -m <mailbox> is ignored. I am not sure about the use of 'stop'.
-n: If the destination mailbox doesn't exist, don't create it. This affects both -m parameter and fileinfo action in Sieve scripts. The fallback is to deliver mail to INBOX.
(typo: fileinto not fileinfo)
My testing shows that if the mailbox does not exist then the mail is rejected like so:
=== Your message was automatically rejected by Dovecot Mail Delivery Agent.
The following reason was given: Mailbox doesn't exist: mail-lists.debian
I like the wiki's solution better.
Jim
-n: If the destination mailbox doesn't exist, don't create it. This affects both -m parameter and fileinfo action in Sieve scripts. The fallback is to deliver mail to INBOX.
(typo: fileinto not fileinfo)
My testing shows that if the mailbox does not exist then the mail is rejected like so:
=== Your message was automatically rejected by Dovecot Mail Delivery Agent.
The following reason was given: Mailbox doesn't exist: mail-lists.debian
has anyone else used the -n with a non-existent mailbox and had the mail delivered to INBOX like the wiki states?
On Sat, 2007-03-24 at 03:26 -0400, Jim Horner wrote:
I took a stab at editing the wiki ... the changes disappeared? I guess I was overruled.
I've seen anonymous edits, so they should work. Did you write the captcha? If you didn't, it should have given a nice red warning that the changes weren't saved.
Anyway, I added the note about -m and Sieve.
My testing shows that if the mailbox does not exist then the mail is rejected like so:
So it seems. Fixed: http://dovecot.org/list/dovecot-cvs/2007-March/008355.html
My testing shows that if the mailbox does not exist then the mail is rejected like so:
So it seems. Fixed: http://dovecot.org/list/dovecot-cvs/2007-March/008355.html
Verified.
Thanks. The small "feature" of ignoring "" for -m is really going to save us a lot of sieve writing. Thanks.
I've seen anonymous edits, so they should work. Did you write the captcha? If you didn't, it should have given a nice red warning that the changes weren't saved.
I added stuff to other pages. I dunno what happened... most likely user error.
participants (2)
-
Jim Horner
-
Timo Sirainen