SF.net SVN: postfixadmin: [203] trunk/VIRTUAL_VACATION/vacation.pl
Brought to you by:
christian_boltz,
gingerdog
From: <Gin...@us...> - 2007-11-08 18:21:20
|
Revision: 203 http://postfixadmin.svn.sourceforge.net/postfixadmin/?rev=203&view=rev Author: GingerDog Date: 2007-11-08 10:21:23 -0800 (Thu, 08 Nov 2007) Log Message: ----------- vacation.pl: do not send a vacation response if the mail has been previously classes as spam - assumes /^x-spam-flag:\s+yes$/i matches in the message Modified Paths: -------------- trunk/VIRTUAL_VACATION/vacation.pl Modified: trunk/VIRTUAL_VACATION/vacation.pl =================================================================== --- trunk/VIRTUAL_VACATION/vacation.pl 2007-11-05 23:23:19 UTC (rev 202) +++ trunk/VIRTUAL_VACATION/vacation.pl 2007-11-08 18:21:23 UTC (rev 203) @@ -325,6 +325,7 @@ elsif (/^cc:\s+(.*)\n$/i) { $cc = $1; $lastheader = \$cc; } elsif (/^subject:\s+(.*)\n$/i) { $subject = $1; $lastheader = \$subject; } elsif (/^message-id:\s+(.*)\n$/i) { $messageid = $1; $lastheader = \$messageid; } + elsif (/^x-spam-flag:\s+yes$/i) { exit (0); } elsif (/^precedence:\s+(bulk|list|junk)/i) { exit (0); } elsif (/^x-loop:\s+postfix\ admin\ virtual\ vacation/i) { exit (0); } else {$lastheader = "" ; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |