On Fri, March 16, 2007 8:12 pm, Tom Bombadil <[EMAIL PROTECTED]> said:

> How can deliver messages to a subfolder using the LDA?
> For example, I want a message to [EMAIL PROTECTED] 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 [EMAIL PROTECTED] -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

Reply via email to