Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

mha-decode(1) [debian man page]

MHA-DECODE(1)						       MHonArc Documentation						     MHA-DECODE(1)

NAME
mha-decode - Decode MIME messages SYNOPSIS
mha-decode [options] mailfolder ... mha-decode [options] -single msg.822 DESCRIPTION
mha-decode is a utility program that is part of the MHonArc software package. mha-decode provides basic MIME decoding for mail messages. If given mail folders as input, all messages within in the mail folders will be decoded. All message parts are written to files. If a filename is specified for a message part, that filename will be used when writing the part to a file. If no filename is specified in the message, a unique name will be used based upon the content-type of the message part. A single message can be decoded by using the "-single" option. OPTIONS
mha-decode takes options available to mhonarc, but only those options affect parsing of mail folders are applicable: "-conlen", "-mhpattern", "-msgsep", "-noconlen", "-outdir", "-perlinc", "-rcfile", "-single", "-umask". Also, mha-decode supports the following additional options: "-dcd-digest" Run in message digest mode. When this option is specified, any embedded "message/rfc822" and "message/news" parts will be saved instead of recursively decoding any parts contained within. NOTES
The documentation for MHonArc is distributed in HTML format. Due to its size and organization, it is not suited for manpage format. Consult your system administrator for where the documentation has been installed, or see "AVAILABILITY" on where you can access the documentation on the web. AVAILABILITY
<http://www.mhonarc.org/> AUTHOR
Earl Hood, mhonarc@mhonarc.org MHonArc comes with ABSOLUTELY NO WARRANTY and MHonArc may be copied only under the terms of the GNU General Public License, which may be found in the MHonArc distribution. MHonArc v2.6 2003-07-19 MHA-DECODE(1)

Check Out this Related Man Page

Encode::MIME::Header(3) 				User Contributed Perl Documentation				   Encode::MIME::Header(3)

NAME
Encode::MIME::Header -- MIME 'B' and 'Q' header encoding SYNOPSIS
use Encode qw/encode decode/; $utf8 = decode('MIME-Header', $header); $header = encode('MIME-Header', $utf8); ABSTRACT
This module implements RFC 2047 Mime Header Encoding. There are 3 variant encoding names; "MIME-Header", "MIME-B" and "MIME-Q". The difference is described below decode() encode() ---------------------------------------------- MIME-Header Both B and Q =?UTF-8?B?....?= MIME-B B only; Q croaks =?UTF-8?B?....?= MIME-Q Q only; B croaks =?UTF-8?Q?....?= DESCRIPTION
When you decode(=?encoding?X?ENCODED WORD?=), ENCODED WORD is extracted and decoded for X encoding (B for Base64, Q for Quoted-Printable). Then the decoded chunk is fed to decode(encoding). So long as encoding is supported by Encode, any source encoding is fine. When you encode, it just encodes UTF-8 string with X encoding then quoted with =?UTF-8?X?....?= . The parts that RFC 2047 forbids to encode are left as is and long lines are folded within 76 bytes per line. BUGS
It would be nice to support encoding to non-UTF8, such as =?ISO-2022-JP? and =?ISO-8859-1?= but that makes the implementation too complicated. These days major mail agents all support =?UTF-8? so I think it is just good enough. Due to popular demand, 'MIME-Header-ISO_2022_JP' was introduced by Makamaka. Thre are still too many MUAs especially cellular phone handsets which does not grok UTF-8. SEE ALSO
Encode RFC 2047, <http://www.faqs.org/rfcs/rfc2047.html> and many other locations. perl v5.16.3 2013-04-29 Encode::MIME::Header(3)
Man Page