Filename Modify Subject

Julian Field mailscanner at ecs.soton.ac.uk
Tue Oct 8 21:21:14 IST 2002


At 21:06 08/10/2002, you wrote:
>Dustin Baer wrote:
> >
> > I have the following in mailscanner.conf.  The "Subject Text" was
> > modified for testing purposes:
> >
> > Virus Modify Subject = yes
> > Virus Subject Text = {VIRUS VIRUS?}
> >
> > Filename Subject Text = {FILENAME VIRUS?}
>
>Strange.  I swear I had "Filename Modify Subject = no" in there.

Yes, I didn't quite create the logic the way I should have done. I have
fixed this, but if you want it now then the patch is really simple:

--- /root/unstable/mailscanner/mailscanner/bin/MailScanner/Message.pm   Tue
Oct  8 17:36:51 2002
+++ ./Message.pm        Tue Oct  8 21:29:13 2002
@@ -1406,9 +1406,9 @@
    if ($this->{nameinfected} &&   # Triggered a filename trap
        !$this->{virusinfected} && # No other reports about it
        !$this->{otherinfected} && # They want the tagging & not already tagged
-      MailScanner::Config::Value('nameprependsubject',$this) &&
        !$global::MS->{mta}->TextStartsHeader($this, 'Subject:', $nametag)) {
-    $global::MS->{mta}->PrependHeader($this, 'Subject:', $nametag, ' ');
+    $global::MS->{mta}->PrependHeader($this, 'Subject:', $nametag, ' ')
+      if MailScanner::Config::Value('nameprependsubject',$this);
    } else {
      # It may be really virus infected.
      # Modify the subject line for viruses

--
Julian Field                Teaching Systems Manager
jkf at ecs.soton.ac.uk         Dept. of Electronics & Computer Science
Tel. 023 8059 2817          University of Southampton
                             Southampton SO17 1BJ



More information about the MailScanner mailing list