[Dovecot] deliver to subfolder with dovecot's LDA
Bill Boebel
bill at webmail.us
Sat Mar 17 04:41:30 EET 2007
On Fri, March 16, 2007 8:12 pm, Tom Bombadil <grlists at gmail.com> said:
> How can deliver messages to a subfolder using the LDA?
> For example, I want a message to joe+spam at abc.com to be placed inside
> the 'spam' subfolder.
$ deliver --help
Usage: deliver [-c <config file>] [-d <destination user>] [-m <mailbox>]
[-f <envelope sender>]
So for the example above, you can call it like this:
$ deliver -d joe at abc.com -m spam
To do this from Postfix, /etc/postfix/master.cf:
dovecot unix - n n - - pipe
flags=DRhu user=virtual argv=/usr/libexec/dovecot/deliver -d ${recipient} -f ${sender} -m ${extension}
However, I think LDA freaks out if you pass -m "". So this might not work when there is no "+folder".
Timo: Should -m treat empty string as if -m was not passed at all?
Bill
More information about the dovecot
mailing list