Message127983
Well, here is the long-asked-for 'fp_mailbox.py' test thing.
Note: it generates a 'test.mbox' in CWD!
print("USAGE: fp_mailbox.py 0|1|2",
" 0 = use raw UTF-8 string",
" 1 = use UTF-8 string",
" 2 = use escaped byte string", sep="\n")
It does not use FeedParser directly, but email.message_from_*. It's simple minded, but a dumb new python(1) user (like me) does not know otherwise, i guess. Of course the input is malformed, but, you know, shit happens (you may trust me in respect to that). I want to point out that .defects is the empty list, even though the input is *not* correctly converted (quopri/base64) and blows mailbox.add later on for test cases 0 and 1 (resulting in corrupted mailbox files). 2 does not cause a traceback and is mailbox.add()ed, but the resulting mail is not standart-conforming either. For me and my (S-)Postman all of this means that i have to encapsulate all of this with a 'MessageBuilder' layer on top of the python(1) builtin email package.
I personally will encapsulate the email.* stuff with a MessageBuilder |
|
Date |
User |
Action |
Args |
2011-02-05 12:09:42 | sdaoden | set | recipients:
+ sdaoden, r.david.murray, SilentGhost |
2011-02-05 12:09:42 | sdaoden | set | messageid: <1296907782.72.0.570380805079.issue11116@psf.upfronthosting.co.za> |
2011-02-05 12:09:42 | sdaoden | link | issue11116 messages |
2011-02-05 12:09:41 | sdaoden | create | |
|