bouncing mail

Julian Field mailscanner at ecs.soton.ac.uk
Wed Sep 15 21:23:29 IST 2004


<x-flowed>
At 20:49 15/09/2004, you wrote:
>Julian Field wrote:
>
>>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.
>>>The report being used is sender.spam.sa.report.txt.
>>
>>
>>Here is a little patch for Message.pm that should do what you want. If it
>>works, let me know and I'll put it in the next release.
>>
>>-----SNIP-----
>>--- Message.pm.old 2004-09-14 09:40:48.000000000 +0100
>>+++ Message.pm  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}}) {
>>-----SNIP-----
>
>I got a blank line where I put $longspamreport in the report.

Now if only I could remember how to get around all the restrictions and
actually get a spam bounce to happen, I might be able to test it properly :-(

Does your Message.pm set "salongreport" anywhere? Just do a
         grep salongreport Message.pm
and let me know what it finds.
--
Julian Field
www.MailScanner.info
Professional Support Services at www.MailScanner.biz
MailScanner thanks transtec Computers for their support
Buy the MailScanner book at www.MailScanner.info/store

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

------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the MAQ (http://www.mailscanner.biz/maq/) and
the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).
</x-flowed>



More information about the MailScanner mailing list