
This Python module parses key-value pairs in the style of RFC 822 (e-mail) headers and converts them into case-insensitive dictionaries with the trailing message body (if any) attached. Low-level functions for just scanning header fields (breaking them into sequences of key-value pairs without any further processing) are also included.