Issue with "Add Text Of Doc" feature

Julian Field MailScanner at
Fri May 15 10:14:28 IST 2009

On 14/05/2009 17:41, Mark Sapiro wrote:
> Mark Sapiro wrote:
>> I have been experimenting with the "Add Text Of Doc" feature. The issue
>> I have come across is the output of antiword is in my case UTF-8
>> encoded (in the absense of a specific mapping provided to antiword,
>> it's locale dependent), but the plain text attachment added by
>> MailScanner doesn't specify a charset in its Content-Type.
>> It would be nice if you could grok
That word doesn't appear in my Oxford dictionary...
>>   the encoding from the system locale
>> and specify it, or barring that, provide a config option to set it.
Any idea how to get it from the Locale? Otherwise I'll just have to let 
you set it.
> Please note, in case it wasn't clear, the current behavior is a real
> problem. UTF-8 encoded data are being sent in a text/plain part with
> implicit charset us-ascii resulting in data being displayed in MUAs
> like the following:
>                              Lani Waller Presents
>                              “A Steelheader’s Way”
> “A Steelheader’s Way” is a presentation on the principles,
> tactics,
> techniques and philosophy of trophy steelhead fishing based on Lani’s
> new
> book of the same title.  This personal look will include the “common
> elements of the endeavor” ...


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
Follow me at and

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