Graphic inline Signature - 4.69.5 released

Julian Field MailScanner at
Thu Apr 17 09:56:50 IST 2008

Dave Jones wrote:
>> Dave Jones wrote:
>>> Version 4.68 solved the problem.  The image is being displayed properly.
>>> Now, the next issue.  I need to find a way to only attach it once on
>>> the initial outbound email.  My testing shows that it is attaching it
>>> multiple times so replies back and forth are growing and growing in
>>> size which is not good.  I will research how to prevent multiple
>>> attachments.  Any ideas would be much appreciated.
>> It will do that. Any ideas are most welcome, I couldn't immediately
>> think of a good solution. After all, how do you know that
>> <signature.jpg> is *your* signature.jpg and not someone else's? If I was
>> setting it up for a lot of people, I would always use the same filename
>> in the HTML to make it easier to configure for different people.
>> The only thing I could think of is to walk the entire MIME tree looking
>> for images, and check their size (and even contents?) against the
>> signature image you're trying to add. If you find it, try to point the
>> signature at it. But what do you then do, start editing the HTML
>> signature automatically? Eek :-(
>> Lightweight solutions are most welcome. In the mean time the 0.01%
>> (approx) of internet traffic that is email will have to be slightly more
>> than it might be otherwise. It's a way to go before it reaches the
>> amount of Bit-Torrent traffic :-)
>> Jules
> Would it be possible to use some tag in the html so that MailScanner
> could evaluate/find to not duplicate if found?  Maybe use the alt=
> text to determine if the image and the alt= text already exists?  Or
> if there is an accurate method to detect a reply or forward from the
> headers and have a MailScanner.conf option or rule to only include it
> on original emails and not reply or forwards similar to how most email
> clients work.
Very good, I like it. So now you can do it :-)
I've just released 4.69.5 which can do this.
In your signature's <img> tag, you must have an "alt" attribute which 
contains "MailScanner Signature".

It actually a case-insensitive match on "mailscanner.*signature" so you 
can have anything followed by the word "mailscanner" followed by 
anything followed by the word "signature" followed by anything. So you 
can tweak the text quite a lot and it will still work.

Please can you let me know if this does the behaviour that you want.


Julian Field MEng CITP CEng
Buy the MailScanner book at

Need help customising MailScanner?
Contact me!
Need help fixing or optimising your systems?
Contact me!
Need help getting you started solving new requirements from your boss?
Contact me!

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

This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

More information about the MailScanner mailing list