Mailscanner doesn't add charset when adding signature

Julian Field mailscanner at
Thu Aug 26 19:04:09 IST 2004

At 18:04 26/08/2004, you wrote:
>On Thu, 2004-08-26 at 17:37, Julian Field wrote:
> > I think so, yes. I only add the MIME-Version header if it isn't already
> > there. So I could add the Content-Type header if there is no MIME-Version
> > header. But unfortunately, what do I put for the MIME type? My email client
> > displays a message as html even if there is just a "Content-Type:
> > text/plain" header, or no Content-Type header at all. Not sure I can get
> > all the information I need to do "the right thing". I can't add the charset
> > unless I also set the MIME type, and I can't guess the MIME type if it
> > isn't already there.
> >
> > Thoughts?
>Well, you could use file -i on the message body, but I suspect that
>isn't going to be as portable as one might hope.

Not portable, and very slow :-(
I need a portable, fast way of doing it. I don't want to look at the
message body content at all.
Julian Field
Professional Support Services at
MailScanner thanks transtec Computers for their support
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