Skip to main content

Rejected Messages

An unfortunately frequent duty of message transport services is the rejection of mail to the sender. This may happen because the mail was undeliverable, or because it did not conform to the requirements of a gateway (e.g., it was too large).

There has never been a standard format for rejected messages in the past. This has been an annoyance, but not a major problem for text messages. For non-text messages, however, the lack of a standard rejection format is more crucial, because rejected messages typically appear to be text, and the user who finds himself viewing images or audio as if they were text is rarely happy with the result.

MIME makes it very easy to encapsulate messages in such a way that their semantics are completely preserved. The simplest way to do this is to make each rejection notice a

MIME "multipart/mixed" message. That multipart message would contain two parts, a text part explaining the reason for the rejection, and an encapsulated message part that contained the rejected message itself.

It should be stressed that the transport software does not need to understand the structure of the rejected message at all. It merely needs to encapsulate it properly. The following, for example, shows how any MIME message may be encapsulated in a rejection message in such a way that all information will be immediately visible in the correct form if the recipient reads it with a MIME-conformant mail reader:

     From: Mailer-Daemon <[email protected]>
Subject: Rejected Message
Content-type: multipart/mixed; boundary=unique-boundary

--unique-boundary
Content-type: text/plain; charset=us-ascii

A mail message you sent was rejected. The details of
the rejected message are as follows:

From: Nathainel Borenstein <[email protected]>
Message-ID: <[email protected]>
To: [email protected]
Subject: I know my rights!
Rejection-reason: No mail from libertarians is
accepted.

The original message follows below.
--unique-boundary
Content-type: message/rfc822

The ENTIRE REJECTED MESSAGE, starting with the headers,
goes here.

--unique-boundary--

In the above example, the ONLY thing that is not 'boilerplate" is the choice of boundary string. The phrase "unique-boundary" should be replaced by a string that does not appear (prefixed by two hyphens) in any of the body parts.

Encapsulating a message in this manner is very easily done, and will constitute a significant service that message transport services can perform for MIME users.

IMPORTANT NOTE: The format given above is simply one of many possible ways to format a rejection message using MIME. Independent IETF efforts are needed in order to standardize the format of rejections and acknowledgements.