Issue with "Add Text Of Doc" feature

Julian Field MailScanner at
Fri May 15 12:28:35 IST 2009

On 15/05/2009 12:03, Anthony Cartmell wrote:
>> I currently set it to a text/plain with 8bit encoding. What options 
>> do you want me to provide that would solve your problem?
>   Add Text Of Doc Charset =
> if set to something like "utf-8", would result in the attachment having:
>   Content-type: text/plain; charset="utf-8"
> That would work for me, anyway, and would allow people to set it up to 
> work for whatever character set they want the text to be in.
> The alternative would be to always use UTF-8 and call antiword with " 
> -m UTF-8.txt" so that it outputs UTF-8 characters.
You can make it always generate utf-8 by editing and 
changing the text around line 200 to say this:
   $parententity->attach(     Type => "text/plain",
                              Charset => "utf-8",
                              Encoding => "8bit",
                              Disposition => "attachment",
                              Filename => $attachfile,
                              Path => "$dir/$unpackfile");

(note the "Charset" setting). Then just edit the setting in 
MailScanner.conf to say
Antiword = /usr/bin/antiword -f -m UTF-8.txt

and that's all you need to do. If you find this works okay, that's what 
will go in the next release.


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