[maildropl] Re: reject Mails with wrong or no charset
Brought to you by:
mrsam
From: Sam V. <mr...@co...> - 2002-03-14 23:01:41
|
Ruprecht Helms writes: > Hi, > > I get much emails with incorrect charset - result the old egypt > signs (hyroglyphs). This results because these senders havn't set > a charset or so wrong that xfmail wasn't able to encode these mails. > > How can I filter them out / it should not be delivered. You COULD require that all your mail have the "Content-Type: text/plain; charset=us-ascii" or "Content-Type: text/plain; charset=iso-8859-1", but this won't always work. For starters, this is not going to work for mail with attachments, since its top level MIME content type is going to be multipart/mixed. Furthermore, you'll have plenty of mail without any MIME headers whatsoever, but containing valid us-ascii text. Courier has an option to bounce all mail that does not have proper MIME encoding. That's a far better solution - in nearly every case the improper character coding is due to missing or invalid MIME headers. -- Sam |