1 message in net.sourceforge.lists.courier-maildrop[maildropl] how to force maildrop to ...
FromSent OnAttachments
Oon WeeOct 17, 2005 12:46 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[maildropl] how to force maildrop to exit cleanly ?Actions...
From:Oon Wee (wko@gmail.com)
Date:Oct 17, 2005 12:46:41 am
List:net.sourceforge.lists.courier-maildrop

Hi ,

I have set the maildrop function at 1st line of .qmail-xxx file as below : | preline /usr/local/bin/maildrop ./.maildropfilter

I have set the forward function at .qmail-xxx file as well as below : &xx@xxx.com <http://xxx.com/>

If I want to run maildrop for the email account with forward function , the .qmail-xxx will look like : | preline /usr/local/bin/maildrop ./.maildropfilter &xx@xxx.com <http://xxx.com/>

If the email is spam , it will deliver the spam mail to spam folder , and exit , but it still will foward the email to xx@xxx.com , how can I exit the maildrop cleanly , and don't execute the following line in .qmail-xxx ?

below is the script to filter the spam mail : if (/^Subject:.\[\*SPAM\*\]/) { DUMMY=`test -d $VHOME/Maildir/.spam` if ( $RETURNCODE == 1 ) { DUMMY=`/usr/local/bin/maildirma ke -f spam $VHOME/Maildir/` } exception { xfilter '/usr/local/bin/spamassassin -d -x' } to "$VHOME/Maildir/.spam/." exit } exit to "$VPOP"

how can I exit completely in the filter so that it wond continue to excute the following line in .qmail-xxx ?

Thanks .