4.76.22
Jason Ede
J.Ede at birchenallhowden.co.uk
Wed Apr 29 08:27:57 IST 2009
I've been trying this morning to break it using blat to send text based emails (email-plain) to the server and its been working perfectly. I then used blat again with source copied from an outlook email (email-html) that shows the problem and it does append an extra signature on the end every time. I'll try some more debug on this later by adding some debug lines into the code. I've attached the 2 text files that I've been using.
________________________________________
From: mailscanner-bounces at lists.mailscanner.info [mailscanner-bounces at lists.mailscanner.info] On Behalf Of Julian Field [MailScanner at ecs.soton.ac.uk]
Sent: 28 April 2009 20:40
To: MailScanner discussion
Subject: Re: 4.76.22
On 28/04/2009 20:19, Jason Ede wrote:
> I've been testing the _SIGNATURE_ option here and it seems that it always adds the signature at the end as well as in the message at the signature tags. I'm using html sigs with an inline image. I've taken at look at what I think is the code in message.pm but it all looks correct to me :(
>
Yes, I have looked too, when someone else commented they were getting
the sig at the end too. But the code is incredibly simple and I can't
see anything wrong with it either.
FoundSigMark = 0
FoundSigMark = 1 if we successfully replace _SIGNATURE_ with the
signature text.
print signature text at end of message unless FoundSigMark is non-zero.
That's all there is to it.
> I don't need to change something in the config to stop it signing at the end as well?
>
No.
If you could try adding some lines like
print STDERR "FoundSigMark = $FoundSigMark\n";
lines into the code at suitable places, then run it on your system with
"MailScanner --debug" and see what it prints, that would really help me
debug it.
Many thanks.
>> -----Original Message-----
>> From: mailscanner-bounces at lists.mailscanner.info [mailto:mailscanner-
>> bounces at lists.mailscanner.info] On Behalf Of Julian Field
>> Sent: 28 April 2009 11:56
>> To: MailScanner discussion
>> Subject: 4.76.22
>>
>> I have just released a new beta, this will be one of the last before
>> the
>> next stable release.
>> Please test it, as I have optimised the processing-messages database
>> code, and fixed one or two little bugs. The Change Log will tell you
>> all
>> the details.
>>
>> Download as usual from www.mailscanner.info.
>>
Jules
--
Julian Field MEng CITP CEng
www.MailScanner.info
Buy the MailScanner book at www.MailScanner.info/store
MailScanner customisation, or any advanced system administration help?
Contact me at Jules at Jules.FM
PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
PGP public key: http://www.jules.fm/julesfm.asc
Follow me at twitter.com/JulesFM
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
--
MailScanner mailing list
mailscanner at lists.mailscanner.info
http://lists.mailscanner.info/mailman/listinfo/mailscanner
Before posting, read http://wiki.mailscanner.info/posting
Support MailScanner development - buy the book off the website!
-------------- next part --------------
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page Section1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-GB link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span style='color:#1F497D'>And part 2<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<div>
<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Arial","sans-serif";
color:#1F497D'>-- <o:p></o:p></span></p>
<p class=MsoNormal><b><span style='font-size:12.0pt;font-family:"Arial","sans-serif";
color:#1F497D'>J D Ede </span></b><b><span style='font-size:12.0pt;
color:#1F497D'><o:p></o:p></span></b></p>
<p class=MsoNormal style='margin-top:3.0pt'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif";color:#1F497D'>_SIGNATURE_</span><span
style='font-size:10.0pt;color:#1F497D'><o:p></o:p></span></p>
</div>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<div style='border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt'>
<div>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>
<p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:
"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'> Jason Ede <br>
<b>Sent:</b> 28 April 2009 14:09<br>
<b>To:</b> Messages<br>
<b>Subject:</b> This will have 2 sigs when it goes out<o:p></o:p></span></p>
</div>
</div>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>part 1<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Arial","sans-serif"'>--
<o:p></o:p></span></p>
<p class=MsoNormal><b><span style='font-size:12.0pt;font-family:"Arial","sans-serif"'>
J D Ede </span></b><b><span style='font-size:12.0pt'><o:p></o:p></span></b></p>
<p class=MsoNormal style='margin-top:3.0pt'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif"'>_SIGNATURE_</span><span style='font-size:
10.0pt'><o:p></o:p></span></p>
<p class=MsoNormal><o:p> </o:p></p>
</div>
</div>
</body>
</html>
-------------- next part --------------
This is some random text
No sig here
nor here
_SIGNATURE_
--
and another one here
_SIGNATURE_
more stuff here
and yet more stuff here...
Any sig on end?
More information about the MailScanner
mailing list