simple text file 'parsing' question

Matt Gushee mgushee at havenrock.com
Sun Jun 20 11:56:07 EDT 1999


KP <terocr at mysolution.com> writes:

> Here's my dilema: a directory filled (200+) with small emails. My goal
> is to strip all the headers and combine them into one file. I can read
> all the files just fine and write them all to one file, but I cannot
> discern how to strip the headers.

I have no expertise in this area, but I've been reading the "Internet
Data Handling" section of the Library Reference (Ch. 12 of the 1.5.2
edition), and it seems like there are several modules that might help
you. In particular, check out 'rfc822.'

Hope this helps.

Matt Gushee
Portland, Maine, USA
mgushee at havenrock.com




More information about the Python-list mailing list