The following exception classes are defined in the email.Errors module:
Situations where it can be raised include finding a Unix-From header after the first RFC 2822 header of the message, finding a continuation line before the first RFC 2822 header is found, or finding a line in the headers which is neither a header or a continuation line.
Situations where it can be raised include not being able to find the starting or terminating boundary in a multipart/* message.
See About this document... for information on suggesting changes.