Mailscanner doesn't add charset when adding signature

Julian Field mailscanner at ecs.soton.ac.uk
Thu Aug 26 17:37:01 IST 2004


<x-flowed>
At 17:23 26/08/2004, you wrote:
>Julian Field <mailscanner at ECS.SOTON.AC.UK> wrote:
> > As I just tack the signature on the end of the message for
> > compatibility with the mail clients, if I just get a message without
> > a charset setting in it, I don't know what it might be. I think my
> > only option would be to add the MIME-Version header with the charset
> > parameter's value taken from MailScanner.conf. But I don't think that
> > actually helps at all.
> >
> > Do I actually have enough information available to work out what the
> > right answer is? At the moment, I don't think so.
> >
>When sendmail converts from 8 to 7 bit mime, it can be configured to a
>default charset, which I have set to iso-8859-1.
>
>So MailScanner should assume the same, if the sender hasn't set a charset.

How is it going to discover the default charset? And somehow this has got
to be configured in a way that less-experienced sys admins are actually
going to understand. No point adding a feature if 99% of people don't
understand it :(

>Do you actually know if the sender has set a charset at the time you add the
>mime header?

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?
--
Julian Field
www.MailScanner.info
Professional Support Services at www.MailScanner.biz
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 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