June 2000
Intermediate to advanced
556 pages
8h 45m
English
CD-ROM reference=14018.txt """ xMail Convert mailboxes to a simple XML form for e-mail messages. XML Processing with Python Sean Mc Grath The Eudora e-mail client stores e-mail messages in mailboxes. The file format is plain text. Individual messages are separated by the string "From ???@???". This program processes a mailbox creating an XML file that conforms to the xmail DTD. """ # Import some standard modules # rfc822 is the module for e_mail header parsing import string,rfc822,StringIO LINUX = 0 EUDORA = 1 def XMLEscape(s): """ Escape XMLs two special characters which may occur within an e-mail message. """ s = string.replace(s,"&","&") s = string.replace(s,"<","<") return s def ProcessMessage(lines,out): ...
Read now
Unlock full access