Bug in rfc822

phil hunt philh at comuno.freeserve.co.uk
Thu Aug 9 18:12:27 CEST 2001


On Tuesday 10 July 2001  2:12 am, Barry A. Warsaw wrote:
> >>>>> "ph" == phil hunt <philh at comuno.freeserve.co.uk> writes:
>
>     ph> I am currently writing a program that reads emails,
>         modifies 
>     ph> them in various ways (adding headers, encryption, etc)
>         and 
>     ph> outputs the result.
>[...]
>     ph> My module doesn't know anything about Mime; which is good
>     ph> because IMO there is room for a library that is
>         higher-level 
>     ph> than rfc822 but lower level than knowing about
>         Mime.
>
>     ph> What is the process of getting a module in the standard
>     ph> library?
>
> Post the code. :)  I definitely want to look at what you've got, to
> see how well (or if) it fits with mimelib.

OK, here's my current code. It's in two parts: mailheader.py contains
the Mail, MailHeader ands MailBody classes. (It uses rfc822 for
parsing right now, because I didn't want to reinvent that wheel
just yet). The other module is utility.py, which contains various
small utility functions I find useful, and is used by mailheader.py.

I've put it in MIME attachments.

Bear in mind that this is a work-in-progress. Ususal disclaimers
apply.

-- 
#===== Philip Hunt == philh at comuno.freeserve.co.uk ======#
 Herbivore: effort-free public key email encryption. See:
<http://www.vision25.demon.co.uk/oss/herbivore/intro.html>
          *** herbrip software now released ***
          





 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: mailheader.py
URL: <http://mail.python.org/pipermail/python-list/attachments/20010809/1354bcec/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: utility.py
URL: <http://mail.python.org/pipermail/python-list/attachments/20010809/1354bcec/attachment-0001.ksh>


More information about the Python-list mailing list