Regular Expressions and RFC 822
Aahz
aahz at pythoncraft.com
Sun May 19 17:22:49 EDT 2002
In article <mailman.1021842390.22408.python-list at python.org>,
alex gigh <cogs2002 at hotmail.com> wrote:
>
>I am trying to write a mail server in Python and I found out that I can use
>regular expressions and then grouping:
>
>"For example, an RFC-822 header line is divided into a header name and a
>value, separated by a ":". This can be handled by writing a regular
>expression which matches an entire header line, and has one group which
>matches the header name, and another group which matches the header's value.
>"
>
>Can someone help me by showing me an example of how I could do this...
Use the email module.
--
Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/
"In the end, outside of spy agencies, people are far too trusting and
willing to help." --Ira Winkler
More information about the Python-list
mailing list