13 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] Vacation scripting fo...
FromSent OnAttachments
Todd LyonsOct 13, 2005 1:59 pm 
Rolan YangOct 13, 2005 2:15 pm 
Todd LyonsOct 13, 2005 2:50 pm 
moussOct 13, 2005 6:27 pm 
Todd LyonsOct 14, 2005 11:37 am 
moussOct 14, 2005 3:39 pm 
Todd LyonsOct 14, 2005 4:05 pm 
moussOct 15, 2005 5:45 am 
Todd LyonsOct 17, 2005 10:48 am 
Ralf HildebrandtOct 18, 2005 5:21 am 
Todd LyonsOct 18, 2005 8:51 am 
Ralf HildebrandtOct 18, 2005 8:54 am 
Todd LyonsOct 19, 2005 12:12 pm 
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:Re: [maildropl] Vacation scripting for maildropActions...
From:mouss (use@free.fr)
Date:Oct 15, 2005 5:45:07 am
List:net.sourceforge.lists.courier-maildrop

Todd Lyons a écrit :

/^X-Spam-Status:.*/ if ( $MATCH =~ /Yes/ ) { log "No vacation message: $MATCH" exit }

Beware the "common" bug here (I know it because it happened to me;-) This would match: X-Spam-Status: No, score=-2.464 required=5 tests=[BAYES_00=-2.599, => see the 'YES' in 'BAYES'.

use /^X-Spam-Flag: YES/ instead. or at least, /^X-Spam-Status: Yes/

one can even play with the score so as to not auto-respond if score >= 4 (for instance, because such message, while not tagged as spam, is suspicious): /^X-Spam-Level: \*\*\*\*/

or if one is a geek, he can set a non integral treshold here: SPAM_NOAUTO_LEVEL = 3.6 /^X-Spam-Score: (\d+[\.\d+])/ if ($MATCH > $SPAM_NOAUTO_SCORE) ...

but this is over-engineering...

with regard to the TO/CC check, you may put the valid rcpt addresses are in a file: /^To: (.*)/ loop with getaddr lookup($address, $file) and if no lookup succeeds, don't send the vacation message.

another enhancement is to have 2 different vacation messages: vacation.private and vacation.public. the first would contain private infos (phone number, ...) and would only be sent to "trusted" people. then have 3 files: - list of "trusted" people: vacation.trusted - list of "blocked" people (no vacation to these): vacation.bl then again, lookup the sender in these files. if found in .bl, no vacation. if found in .trusted, then send the private message. otherwise, send the public message.