I am using maildrop to filter incoming mail (this is a user's filter,
not a system one). Some stuff I am piping to a python script, which
should class the mail as delivered, Unfortunately, I can't seem to find
the appropriate return value.

Here is the relevant section of the filter:
    # If we get a spam level of 5 or more, process it
    if ( /^X-Spam-Level: *\*\*\*\*\*/ )
    {
       log "MCS - Identified SPAM for processing"
       # Run processing script
       to "|/home/matt/data/Development/MailScripts/script.py"
    }


If the script returns a value of 0, the log shows the following line:
    File: |/home/matt/data/Development/MailScripts/script.py
Unfortunately, this merely requeues the message for another delivery
attempt.

I have tried setting the return value to other numbers (e.g. the 99
suggested for successful delivery in .courier), however this also causes
a requeue, this time with the message:
    !Err: |/home/matt/data/Development/MailScripts/script.py

Can anyone suggest what my script should return in order to make
maildrop think it has delivered the message correctly?

Cheers,

Matt.

"Power corrupts. Absolute power is kind of neat." - John Lehman, US
Secretary of the Navy, 1981-1987



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to