GNU Mailutils Manual (split by node):   Section:   Chapter:FastBack: Programs   Up: decodemail   FastForward: Libraries   Contents: Table of ContentsIndex: Function Index

3.9.3 Purpose and caveats of decodemail.

The principal use envisioned for this program is to decode messages in batch, after they are received.

Unfortunately, some mailers prefer to encode messages in their entirety in base64 (or quoted-printable), even when the content is entirely human-readable text. This makes straightforward use of grep or other standard commands impossible. The idea is for decodemail to rectify that, by making the message text readable again.

Besides personal mail, mailing list archives are another place where such decoding can be useful, as they are often searched with standard tools.

It is generally not recommended to run decodemail within a mail reader (which should be able to do the decoding itself), or directly in a terminal (since quite possibly there will be 8-bit output not in the current character set).

Although the output message from decodemail should be entirely equivalent to the input message, apart from the decoding, it is generally not identical. Because decodemail parses the input message and reconstructs it for output, there are usually small differences:

If a discrepancy is created which actually affects message parsing or reading, that’s most likely a bug, and please report it. Naturally, please send an exact input message to reproduce the problem.

GNU Mailutils Manual (split by node):   Section:   Chapter:FastBack: Programs   Up: decodemail   FastForward: Libraries   Contents: Table of ContentsIndex: Function Index