[prev in list] [next in list] [prev in thread] [next in thread] 

List:       procmail
Subject:    [Fwd: delivery to a subfolder using Maildir format]
From:       Alex Rodriguez <alex () spectrecom ! com>
Date:       2010-03-22 20:39:22
Message-ID: 50041.64.134.19.226.1269290362.squirrel () webmail ! spectrecom ! com
[Download RAW message or body]

Hello:

Cancel that ... had a syntax problem ...


Regards,
Alex Rodriguez



---------------------------- Original Message ----------------------------
Subject: delivery to a subfolder using Maildir format
From:    "Alex Rodriguez" <alex@spectrecom.com>
Date:    Mon, March 22, 2010 1:00 pm
To:      procmail@lists.RWTH-Aachen.de
--------------------------------------------------------------------------

Hello:

I'm currently using dovecot 1.0.7 on CentOS 5.4.
I've setup ${HOME}/.procmail for POP only users( Mbox format):

-----------------------------------------------------------------
#Preliminaries
VERBOSE=yes
SHELL=/bin/bash                 #Use the Bash shell (check your path!)
MAILDIR=${HOME}/mail            #First check what your mail directory is!
LOGFILE=${HOME}/procmaillog.`date +%y-%m-%d`

:0fw
| spamc

# Spamassassin Section
:0:
* ^X-Spam-Flag:.*YES*
Spam

# Accept all the rest to your default mailbox
:0:
${DEFAULT}
---------------------------------------------------------------


However; for IMAP user's(Maildir format) I have something like this:

---------------------------------------------------------------
#Preliminaries
VERBOSE=yes
SHELL=/bin/bash                 #Use the Bash shell (check your path!)
LOGFILE=${HOME}/procmaillog.`date +%y-%m-%d`
############################
## For Dovecot delivery ####
############################
DOVECOT_DELIVERY="/usr/libexec/dovecot/deliver"

:0fw
| spamc

# Spamassassin Section
:0:
* ^X-Spam-Flag:.*YES*
| $DOVECOT_DELIVERY

# Accept all the rest to your default mailbox
:0:
| $DOVECOT_DELIVERY
---------------------------------------------------------------

Notice that in the first snippet(for POP only users, using Mbox format),
the messages that Spamassassin has tagged as Spam get sent to the Spam
"folder"(which in reality is just a text file)

The question:
How can I achieve something similar on the second snippet(for those using
Maildir format)?
I want messages tagged as spam to go into a "spam" folder for each user.


Regards,
Alex Rodriguez





-----------------------------------------
Spectrecom Corporation.
PO Box 950096.
Mission Hills, California 91395.

Phone: 818.832.4111.
Fax:   818.832.8111.
For Epson consumables please visit
 http://www.spectrecom.com




-----------------------------------------
Spectrecom Corporation.
PO Box 950096.
Mission Hills, California 91395.

Phone: 818.832.4111.
Fax:   818.832.8111.
For Epson consumables please visit
 http://www.spectrecom.com

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail@lists.RWTH-Aachen.de
http://mailman.rwth-aachen.de/mailman/listinfo/procmail
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic