Hi, man mimedefang-filter reads:
action_quarantine_entire_message($msg) Quarantines the entire message in a quarantine directory on the mail server, but does not otherwise affect disposition of the message. If "$msg" is non-empty, it is included in any administrator notification. To my surprise, it seems that action_quarantine_entire_message's parameter, $msg, is added inline to the actual message. That was... ehh, quite surprising, since the messages were politically incorrect debug messages, and which confused the hell out of the actual recipient, since they suddenly appeared in the middle of a legitimate, nonspam, nonvirus email. Is this a bug in mimedefang? is this a bug in the documentation? Using 2.39 here. There should be a huge warning in the documentation, since this behaviour was entirely nonobvious to me. I made a quick patch to fix the issue for me (@Warnings was used for Quarantine notification warnings as well as for recipient warnings, which is .. eh .. bad. ). Not well tested, but I was assuming that the code is easy enough for me to grasp. Dirk
--- mimedefang.pl 2004-02-27 14:31:35.000000000 +0100 +++ /usr/local/bin/mimedefang.pl 2004-02-28 21:37:50.523103387 +0100 @@ -40,7 +40,7 @@ $NotifySenderSubject $NotifyAdministratorSubject $ValidateIPHeader $QuarantineSubject $SALocalTestsOnly $NotifyNoPreamble - %Actions %Stupidity @FlatParts @Recipients @Warnings %Features + %Actions %Stupidity @FlatParts @Recipients @QuarantineWarnings @Warnings %Features $SyslogFacility $GraphDefangSyslogFacility $MaxMIMEParts $InMessageContext $InFilterContext $PrivateMyHostName $EnumerateRecipients $InFilterEnd $FilterEndReplacementEntity @@ -1095,7 +1095,7 @@ $Actions{'quarantine_entire_message'}++; if (defined($msg) && ($msg ne "")) { - push(@Warnings, "$msg\n"); + push(@QuarantineWarnings, "$msg\n"); if (open(OUT, ">$QuarantineSubdir/MSG.0")) { print OUT "$msg\n"; close(OUT); @@ -1404,7 +1404,7 @@ close(IN); } } - if ($#Warnings >= 0) { + if ($#QuarantineWarnings >= 0) { $body .= "\n----------\nHere are the warning details:\n\n"; $body .= "@Warnings"; } @@ -4475,6 +4475,7 @@ undef @FlatParts; undef @Recipients; undef @Warnings; + undef @QuarantineWarnings; } #***********************************************************************
_______________________________________________ Visit http://www.mimedefang.org and http://www.canit.ca MIMEDefang mailing list [EMAIL PROTECTED] http://lists.roaringpenguin.com/mailman/listinfo/mimedefang