procmail
[Top] [All Lists]

Procmail with Cyrus IMAP

2003-11-24 18:15:25
Hi

I am having trouble getting Promail to hand stuff to my Cyrus IMAP server.
The mail just ends up in my regular maildir

Here is the simple receipe I am trying to get working first:

DELIVERMAIL="/usr/cyrus/bin/deliver"
LOGFILE="/var/log/mail/$USER.log"
IMAP="$DELIVERMAIL -e -a $USER -m user.$USER"
BACKUP="$DELIVERMAIL -e -a $USER -m user.$USER.Backup"
SPAMIT="$DELIVERMAIL -e -a $USER -m user.$USER.SPAM"

#################################################################### ###
Create a backup of the message just in case
one of our recipes fail ### We can always comment this out later when we're
confident of our recipes ################
####################################################

:0 c
| $BACKUP

########################################################### ### Brain-dead
spam filter ##############################
#############################

:0
* ^Subject: This is spam
| $SPAMIT

########################################################### ### Deliver it
to the user inbox ########################
###################################

:0 w
| $IMAP

:0 w
{
EXITCODE=$?



Any help would be greatly appreciated.

Craig




_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>