Hi all... 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. Any hint is appreciated. Thanks ;)
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
Tom, See http://wiki.dovecot.org/LDA/Sieve -----Original Message----- From: dovecot-bounces at dovecot.org [mailto:dovecot-bounces at dovecot.org] On Behalf Of Tom Bombadil Sent: Saturday, March 17, 2007 11:13 AM To: dovecot at dovecot.org Subject: [Dovecot] deliver to subfolder with dovecot's LDA Hi all... 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. Any hint is appreciated. Thanks ;)
Gerhard Wiesinger
2007-Mar-17 06:27 UTC
[Dovecot] deliver to subfolder with dovecot's LDA - procmail filtering
Hello! If you want to use procmail for filtering this might be interesting for you: Try my patch from: http://dovecot.org/pipermail/dovecot/2006-July/014656.html You can use dovecots deliver program with procmail, it also trips the from lines. It works well for me since July 2006. Logging is done through the procmail logging. This might also be interesting: http://dovecot.org/pipermail/dovecot/2007-January/018523.html http://dovecot.org/pipermail/dovecot/2007-January/018537.html Enhanced Patch from Ralf Becker: http://dovecot.org/pipermail/dovecot/2007-January/thread.html#18523 http://dovecot.org/pipermail/dovecot/2007-January/018579.html Ciao, Gerhard -- http://www.wiesinger.com/ On Fri, 16 Mar 2007, Tom Bombadil wrote:> Hi all... > > 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. > > Any hint is appreciated. > > Thanks ;) >