diff options
author | cvs2svn <cvs2svn@FreeBSD.org> | 2005-01-21 15:36:45 +0000 |
---|---|---|
committer | cvs2svn <cvs2svn@FreeBSD.org> | 2005-01-21 15:36:45 +0000 |
commit | 7011c19a8c96a2f8fb7c04d61cb28cdc507584a6 (patch) | |
tree | 22c0efaf2b6bb5b461389f9bac9542c7e3a5909a /mail/qmail-scanner1/files/patch-qmail-scanner-queue.template | |
parent | Now buildable on 4.x, still broken on >= 5.x. (diff) |
This commit was manufactured by cvs2svn to create tag 'RELEASE_4_11_0'.release/4.11.0
Diffstat (limited to 'mail/qmail-scanner1/files/patch-qmail-scanner-queue.template')
-rw-r--r-- | mail/qmail-scanner1/files/patch-qmail-scanner-queue.template | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/mail/qmail-scanner1/files/patch-qmail-scanner-queue.template b/mail/qmail-scanner1/files/patch-qmail-scanner-queue.template deleted file mode 100644 index ad2728979032..000000000000 --- a/mail/qmail-scanner1/files/patch-qmail-scanner-queue.template +++ /dev/null @@ -1,51 +0,0 @@ ---- qmail-scanner-queue.template.orig Wed Mar 10 21:02:05 2004 -+++ qmail-scanner-queue.template Mon Mar 15 01:26:52 2004 -@@ -85,11 +85,17 @@ - - - #From: line information used when making reports --my $V_FROM='USERNAME@MAILDOMAIN'; --my $V_FROMNAME='System Anti-Virus Administrator'; -+my $V_FROM='ADMIN_MAIL'; -+my $V_FROMNAME='ADMIN_REALNAME'; - - # Address carbon-copied on any virus reports --my $QUARANTINE_CC='USERNAME@MAILDOMAIN'; -+my $QUARANTINE_CC='ADMIN_MAIL'; -+ -+# Address to where spams are redirected -+my $SPAMSADMIN='SPAMS_REDIRECT'; -+ -+# Suffix to alter recipients with (when spam detected) -+my $SPAMSSUFFIX='SPAMS_TOSUFFIX'; - - #Array of local domains that are checked against for - #deciding whether or not to send recipient alerts to -@@ -302,6 +308,7 @@ - } - - my ($quarantine_event,$quarantine_event_tmp,$quarantine_DOS)=0; -+my $spam_event=0; - - my $file_id = &uniq_id(); - -@@ -424,7 +431,18 @@ - &email_quarantine_report; - } else { - &qmail_parent_check; -- &qmail_requeue($env_returnpath,$env_recips,"$scandir/$wmaildir/new/$file_id"); -+ if ($spam_event) { -+ if ($SPAMSADMIN) { -+ &qmail_requeue($env_returnpath,"T$SPAMSADMIN\0\0","$scandir/$wmaildir/new/$file_id"); -+ } elsif ($SPAMSSUFFIX) { -+ $env_recips =~ s/\@/\-$SPAMSSUFFIX\@/g; -+ &qmail_requeue($env_returnpath,$env_recips,"$scandir/$wmaildir/new/$file_id"); -+ } else { -+ &qmail_requeue($env_returnpath,$env_recips,"$scandir/$wmaildir/new/$file_id"); -+ } -+ } else { -+ &qmail_requeue($env_returnpath,$env_recips,"$scandir/$wmaildir/new/$file_id"); -+ } - } - alarm 0; - }; |