Question about email.message_from_string() and Message objects
58 views
Skip to first unread message
tin...@isbd.co.uk
unread,
Nov 11, 2012, 10:14:17 AM11/11/12
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
I'm a little confused about the relationship between the Python
email.parser convenience function email.message_from_string() and the
mailbox.Message objects.
If I want an mailbox.mboxMessage given the message as a stream of text
is the right way to do it as follows (or at least a reasonable way to
do it):-
msg = email.message_from_string(messageAsAString)
mbxMsg = mailbox.mboxMessage(msg)
Or can I go direct to mbox by doing:-
mbxMsg = mailbox.mboxMessage(messageAsAString)
--
Chris Green
tin...@isbd.co.uk
unread,
Nov 11, 2012, 12:38:24 PM11/11/12
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
Answered myself by just trying it, the simple, straightforward