Commit beaf9575 authored by Ivan Tyagov's avatar Ivan Tyagov

Use 'postUTF8MailMessage' method for parsing email content.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14981 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent feeef104
...@@ -871,7 +871,7 @@ class TestIngestion(ERP5TypeTestCase): ...@@ -871,7 +871,7 @@ class TestIngestion(ERP5TypeTestCase):
""" """
self.failUnless(hasattr(self.portal, 'portal_mailin')) self.failUnless(hasattr(self.portal, 'portal_mailin'))
f = open(makeFilePath('email_from.txt')) f = open(makeFilePath('email_from.txt'))
res = self.portal.portal_mailin.postMailMessage(f.read()) res = self.portal.portal_mailin.postUTF8MailMessage(f.read())
# we check if the mailin returned anything - it should return a message saying that the recipient does not exist # we check if the mailin returned anything - it should return a message saying that the recipient does not exist
# the exact wording may differ # the exact wording may differ
# the way mailin works is that if mail was accepted it returns None # the way mailin works is that if mail was accepted it returns None
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment