1.1 --- a/actions/ReadMessage.py Tue Jan 07 23:46:19 2014 +0100
1.2 +++ b/actions/ReadMessage.py Tue Jan 07 23:47:15 2014 +0100
1.3 @@ -11,11 +11,6 @@
1.4 from ItemSupport import ItemStore
1.5 from email.parser import Parser
1.6
1.7 -try:
1.8 - from cStringIO import StringIO
1.9 -except ImportError:
1.10 - from StringIO import StringIO
1.11 -
1.12 Dependencies = []
1.13
1.14 class ReadMessage(ActionBase, ActionSupport):
1.15 @@ -105,7 +100,7 @@
1.16
1.17 # Visit the message parts, looking for the indicated component.
1.18
1.19 - message = Parser().parse(StringIO(message_text))
1.20 + message = Parser().parsestr(message_text)
1.21
1.22 if message.is_multipart():
1.23 for part in message.get_payload():