This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author sdaoden
Recipients SilentGhost, r.david.murray, sdaoden
Date 2011-02-05.12:09:41
SpamBayes Score 7.440268e-09
Marked as misclassified No
Message-id <1296907782.72.0.570380805079.issue11116@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2011-02-05 12:09:42sdaodensetrecipients: + sdaoden, r.david.murray, SilentGhost
2011-02-05 12:09:42sdaodensetmessageid: <1296907782.72.0.570380805079.issue11116@psf.upfronthosting.co.za>
2011-02-05 12:09:42sdaodenlinkissue11116 messages
2011-02-05 12:09:41sdaodencreate