Return-Path: X-Original-To: apmail-incubator-allura-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-allura-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4AFC010D7B for ; Tue, 10 Sep 2013 13:04:55 +0000 (UTC) Received: (qmail 29653 invoked by uid 500); 10 Sep 2013 13:04:54 -0000 Delivered-To: apmail-incubator-allura-commits-archive@incubator.apache.org Received: (qmail 29610 invoked by uid 500); 10 Sep 2013 13:04:54 -0000 Mailing-List: contact allura-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: allura-dev@incubator.apache.org Delivered-To: mailing list allura-commits@incubator.apache.org Received: (qmail 29589 invoked by uid 99); 10 Sep 2013 13:04:53 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Sep 2013 13:04:53 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 0688789F150; Tue, 10 Sep 2013 13:04:53 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: tvansteenburgh@apache.org To: allura-commits@incubator.apache.org Date: Tue, 10 Sep 2013 13:04:52 -0000 Message-Id: <050037f0944543d8bae4179cd47358fc@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [1/2] git commit: [#6628] ticket:434 use generic "From address" in export emails for reply_to Updated Branches: refs/heads/master 4eb88f5b6 -> c0b098cf6 [#6628] ticket:434 use generic "From address" in export emails for reply_to Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/c0b098cf Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/c0b098cf Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/c0b098cf Branch: refs/heads/master Commit: c0b098cf629e541d4a40116ae86c0e940877064e Parents: e2840fe Author: Yuriy Arhipov Authored: Tue Sep 10 14:20:07 2013 +0400 Committer: Tim Van Steenburgh Committed: Tue Sep 10 13:04:26 2013 +0000 ---------------------------------------------------------------------- Allura/allura/tasks/export_tasks.py | 2 +- Allura/allura/tests/test_tasks.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/c0b098cf/Allura/allura/tasks/export_tasks.py ---------------------------------------------------------------------- diff --git a/Allura/allura/tasks/export_tasks.py b/Allura/allura/tasks/export_tasks.py index 8146b0f..ecd538c 100644 --- a/Allura/allura/tasks/export_tasks.py +++ b/Allura/allura/tasks/export_tasks.py @@ -92,7 +92,7 @@ def _bulk_export(project, tools, user): } email = { 'fromaddr': unicode(tg.config['forgemail.return_path']), - 'reply_to': unicode(user.email_address_header()), + 'reply_to': unicode(tg.config['forgemail.return_path']), 'message_id': h.gen_message_id(), 'destinations': [unicode(user._id)], 'subject': u'Bulk export for project %s completed' % project.shortname, http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/c0b098cf/Allura/allura/tests/test_tasks.py ---------------------------------------------------------------------- diff --git a/Allura/allura/tests/test_tasks.py b/Allura/allura/tests/test_tasks.py index 9123fa3..af7898e 100644 --- a/Allura/allura/tests/test_tasks.py +++ b/Allura/allura/tests/test_tasks.py @@ -381,6 +381,7 @@ class TestExportTasks(unittest.TestCase): assert_equal(len(tasks), 1) assert_equal(tasks[0].kwargs['subject'], 'Bulk export for project test completed') assert_equal(tasks[0].kwargs['fromaddr'], 'noreply@sourceforge.net') + assert_equal(tasks[0].kwargs['reply_to'], 'noreply@sourceforge.net') text = tasks[0].kwargs['text'] assert_in('The bulk export for project test is completed.', text) assert_in('The following tools were exported:\n- wiki', text)