rfc822

The rfc822 module is used to parse email headers presented in a format defined by the Internet standards RFC-822 and RFC-2822. Headers of this form are used in a number of contexts, including mail handling and in the HTTP protocol. A collection of RFC-822 headers looks like this:

 Return-Path: <beazley@cs.uchicago.edu> Date: Sun, 15 Apr 03:18:21 -0500 (CDT) Message-Id: <199907171518.KAA24322@gargoyle.cs.uchicago.edu> Reply-To: beazley@cs.uchicago.edu References: <15065.6056.897223.775915@empire-builder.cs.uchicago.edu> <20010415041130.008D1D1D8@smack.cs.uchicago.edu> Mime-Version: 1.0 (generated by tm-edit 7.78) Content-Type: text/plain; charset=US-ASCII From: David Beazley <beazley@cs.uchicago.edu> To: techstaff@cs Subject: Modem problem ...

Get Python: Essential Reference, Third Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.