Module rfc822 - uses file-objects - why?

Thomas Volkmar Worm worm at gdp-group.com
Thu Feb 22 12:30:11 EST 2001


Hi,

I started to write a little programm which reads mails from a POP3
account. To handle the message I thought, I use the rfc822 module or one
of its subclasses (mimetools). But the methods I want to use always
expect file-objects as parameters. Do I need to store every list/string
onto disk when I want to use these classes or methods on them?

To solve the problem I started to write a helper class which implements
methods like readline for my objects, but I really do not want to write
an emulation of the file-class again and again for each object I create.

It seems to me very odd to do this, so I guess there is another much
more clever way to use these classes without having files at all.

Regards
Thomas


-------------- next part --------------
A non-text attachment was scrubbed...
Name: worm.vcf
Type: text/x-vcard
Size: 366 bytes
Desc: Visitenkarte für Thomas Volkmar Worm
URL: <http://mail.python.org/pipermail/python-list/attachments/20010222/48ef2e04/attachment.vcf>


More information about the Python-list mailing list