home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Datafile PD-CD 5
/
DATAFILE_PDCD5.iso
/
utilities
/
p
/
python
/
pyhtmldoc
/
r
/
rfc822
< prev
next >
Wrap
Text File
|
1996-11-14
|
1KB
|
28 lines
<TITLE>rfc822 -- Python library reference</TITLE>
Next: <A HREF="../m/mimetools" TYPE="Next">mimetools</A>
Prev: <A HREF="../f/formatter" TYPE="Prev">formatter</A>
Up: <A HREF="../i/internet_and_www" TYPE="Up">Internet and WWW</A>
Top: <A HREF="../t/top" TYPE="Top">Top</A>
<H1>10.11. Standard Module <CODE>rfc822</CODE></H1>
This module defines a class, <CODE>Message</CODE>, which represents a
collection of ``email headers'' as defined by the Internet standard
RFC 822. It is used in various contexts, usually to read such headers
from a file.
<P>
A <CODE>Message</CODE> instance is instantiated with an open file object as
parameter. Instantiation reads headers from the file up to a blank
line and stores them in the instance; after instantiation, the file is
positioned directly after the blank line that terminates the headers.
<P>
Input lines as read from the file may either be terminated by CR-LF or
by a single linefeed; a terminating CR-LF is replaced by a single
linefeed before the line is stored.
<P>
All header matching is done independent of upper or lower case;
e.g. <CODE>m['From']</CODE>, <CODE>m['from']</CODE> and <CODE>m['FROM']</CODE> all yield
the same result.
<P>
<H2>Menu</H2><DL COMPACT>
<DT><A HREF="../m/message_objects" TYPE=Menu>Message Objects</A>
<DD></DL>