Reading 'received' headers: Email Headers Parsing
dontbotherworld at yahoo.com
Wed Mar 3 21:18:53 CET 2004
I am a new bie experimenting with python.
I have this piece of code to parse the received
headers from emails. However, when I run with a file
as an argument it skips lines like: 1, 3, 5 etc...
I see why is this so : Its because of the
But I dont know how to fix this: I mean I dont know
how I can stay at the current one and then when I am
done with the current one I shall go to
#open passed mailbox filename
#open mailbox from file
#iterate over mail messages
#get next message
#exit if we have looked at the last one
if msg == None:
#get received header
#skup messages with no received header
if received == None:
Do you Yahoo!?
Yahoo! Search - Find what youre looking for faster
More information about the Python-list