You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by jo...@apache.org on 2014/02/03 23:53:40 UTC
[14/15] git commit: [#7096] Convert email msg to unicode before
saving to mongo
[#7096] Convert email msg to unicode before saving to mongo
Signed-off-by: Tim Van Steenburgh <tv...@gmail.com>
Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/bfee3bc7
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/bfee3bc7
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/bfee3bc7
Branch: refs/heads/cj/7085
Commit: bfee3bc78629d5e48aca0c20e207f24e60debd2c
Parents: a92b8e0
Author: Tim Van Steenburgh <tv...@gmail.com>
Authored: Fri Jan 31 17:54:25 2014 +0000
Committer: Dave Brondsema <db...@slashdotmedia.com>
Committed: Fri Jan 31 18:07:47 2014 +0000
----------------------------------------------------------------------
Allura/allura/command/smtp_server.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/bfee3bc7/Allura/allura/command/smtp_server.py
----------------------------------------------------------------------
diff --git a/Allura/allura/command/smtp_server.py b/Allura/allura/command/smtp_server.py
index a055d8a..eb2a98f 100644
--- a/Allura/allura/command/smtp_server.py
+++ b/Allura/allura/command/smtp_server.py
@@ -24,6 +24,7 @@ from paste.script import command
import allura.tasks
from allura.command import base
+from allura.lib import helpers as h
from paste.deploy.converters import asint
@@ -54,7 +55,8 @@ class MailServer(smtpd.SMTPServer):
base.log.info('Msg Received from %s for %s', mailfrom, rcpttos)
base.log.info(' (%d bytes)', len(data))
allura.tasks.mail_tasks.route_email.post(
- peer=peer, mailfrom=mailfrom, rcpttos=rcpttos, data=data)
+ peer=peer, mailfrom=mailfrom, rcpttos=rcpttos,
+ data=h.really_unicode(data))
base.log.info('Msg passed along')
except Exception:
base.log.exception('Error handling msg')