Understanding e-mail structure

In order to make full use of the capabilities of Procmail, it is worth taking some time to understand the basic structure of a typical e-mail message. Over time, the structure has grown in complexity, but it can still be broken down into two discrete blocks.

Message body

The message body is separated from the headers by a single blank line (all the headers must be on consecutive lines, as any headers following a blank line will be assumed to be part of the message body).

The message body itself may be either a simple text message composed normally of simple ASCII characters or it may be a complex combination of parts encoded using something known as MIME. This has allowed e-mail to be able to transfer all forms of ...

Get Linux E-mail now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.