bouncing mail

Julian Field mailscanner at
Wed Sep 15 20:31:18 IST 2004

At 20:07 15/09/2004, you wrote:
>Julian Field wrote:
>>At 19:27 15/09/2004, you wrote:
>>>I have it working OK in my test setup but I was trying unsuccessfully to
>>>include the $longspamreport in the report.  Is there some way of achieving
>>>this?  I tested it with mailscanner-4.29.7-1.
>>What is the problem? Which report are you trying to use it in?
>>I may not have put the code in to use this in the specific report you are
>The report being used is

Here is a little patch for that should do what you want. If it
works, let me know and I'll put it in the next release.

--- 2004-09-14 09:40:48.000000000 +0100
+++  2004-09-15 20:18:47.000000000 +0100
@@ -656,7 +656,7 @@
  sub HandleSpamBounce {
    my $this = shift;

-  my($from,$to,$subject,$date,$spamreport,$hostname);
+  my($from,$to,$subject,$date,$spamreport,$longspamreport,$hostname);
    my($emailmsg, $line, $messagefh, $filename, $localpostmaster, $id);

    $from = $this->{from};
@@ -692,6 +692,7 @@
    $subject = $this->{subject};
    $date = scalar localtime;
    $spamreport = $this->{spamreport};
+  $longspamreport = $this->{salongreport};

    my($to, %tolist);
    foreach $to (@{$this->{to}}) {
Julian Field
Professional Support Services at
MailScanner thanks transtec Computers for their support
Buy the MailScanner book at

PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654

------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at with the words:
'leave mailscanner' in the body of the email.
Before posting, read the MAQ ( and
the archives (

More information about the MailScanner mailing list