allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [13/45] git commit: [#6917] Spawn task to handle email routing
Date Fri, 13 Dec 2013 05:07:59 GMT
[#6917] Spawn task to handle email routing

Because smtp_server is long-running, it's ming session identity map
can get stale. If an app was already in the identity map, the cached
copy of the acl would be used, even if it had been updated in the
meantime. Consequently, updates to the user block list would not
affect email routing unless smtp_server was restarted.

By moving the email routing out-of-process and into a separate task,
we guarantee that each email will be processed within the context of
a fresh session, and therefore, an up-to-date app acl.

Signed-off-by: Tim Van Steenburgh <>


Branch: refs/heads/tv/6942
Commit: 633b107a3853e101ef2bd4becf8b31ae35bd3d55
Parents: 192a5a0
Author: Tim Van Steenburgh <>
Authored: Tue Dec 3 16:34:17 2013 +0000
Committer: Dave Brondsema <>
Committed: Fri Dec 6 22:22:59 2013 +0000

 Allura/allura/command/ | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Allura/allura/command/ b/Allura/allura/command/
index cc1710a..ca26cb4 100644
--- a/Allura/allura/command/
+++ b/Allura/allura/command/
@@ -50,6 +50,6 @@ class MailServer(smtpd.SMTPServer):
     def process_message(self, peer, mailfrom, rcpttos, data):'Msg Received from %s for %s', mailfrom, rcpttos)' (%d bytes)', len(data))
-        allura.tasks.mail_tasks.route_email(
             peer=peer, mailfrom=mailfrom, rcpttos=rcpttos, data=data)'Msg passed along')

View raw message