You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by tv...@apache.org on 2014/01/31 18:54:47 UTC
git commit: [#7096] Convert email msg to unicode before saving to
mongo
Updated Branches:
refs/heads/tv/7096 [created] b54bf1ca4
[#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/b54bf1ca
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/b54bf1ca
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/b54bf1ca
Branch: refs/heads/tv/7096
Commit: b54bf1ca4e976f453db3a77e33fe97ad20292687
Parents: 1d8f6c8
Author: Tim Van Steenburgh <tv...@gmail.com>
Authored: Fri Jan 31 17:54:25 2014 +0000
Committer: Tim Van Steenburgh <tv...@gmail.com>
Committed: Fri Jan 31 17:54:25 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/b54bf1ca/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')