|
NAMEfix-mime-charset - fix incorrect charset specifications in MIME messagesSYNOPSISfix-mime-charset [-BfLm?V] [-c charset] [-I charset,...] [-l language] [-O charset,...] [--break-signature] [--charset=charset] [--force-override] [--ignore-charsets=charset,...] [--lang=language] [--mailbox] [--only-charsets=charset,...] [--show-langs] [--help] [--usage] [--version] [file...]DESCRIPTIONIn non-English mailing lists (particularly in Russian) there is a big problem with messages, where charset parameter of Content-Type header is set incorrectly. Sometimes software is buggy, sometimes people cannot set up their software properly, sometimes web-based email clients do not implement charsets. While reading such a mail, one should manually switch encoding in MUA back and forth. Incorrectly encoded or plain 8-bit Subject field is another big problem. Such fields often get corrupted while passing e-mail gateways.This program can be used to solve these problems while used as mail filter (in MTA, procmail(1) or similar program). It tries to detect correct charset automatically (currently only Russian language KOI8-R, Windows-1251 and UTF-8 charsets are detected) and fixes Content-Type and Subject headers of the message or message subpart. fix-mime-charset interprets multipart messages correctly and processes text/plain subparts only. Attachments, other headers and body of the message are not touched. fix-mime-charset correctly interprets quoted-printable and base64 transfer-encodings. Program is written to be very fast and use minimal amount of memory. When no files are given in command line, the program reads input from stdin. When several files are given, they are concatenated in the order of appearance. OPTIONS
USAGE WITH PROCMAILSome people asked me for examples of using fix-mime-charset with procmail(1). It is very easy - simply insert the following rule into .procmailrc::0 f | fix-mime-charset Filtering rule is non-delivering in terms of procmail(1) and filtered mail will be transferred to following rules. It is equally easy to filter limited subset of messages: :0 * <your filter here> { :0 f | fix-mime-charset <delivering rules here> } AUTHORDmitry E. Melamud <balu@migdal.ru>COPYRIGHTThis program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or any later version.This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. SEE ALSOprocmail(1)
Visit the GSP FreeBSD Man Page Interface. |