[BUG/PATCH 0/2] Replying from other addresses in emacs
authorAdam Wolfe Gordon <awg+notmuch@xvx.ca>
Sun, 25 Mar 2012 00:27:10 +0000 (18:27 +1800)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:45:42 +0000 (09:45 -0800)
a9/0050b6f167bb5335e4b5d64adcaf3ee6b4da5f [new file with mode: 0644]

diff --git a/a9/0050b6f167bb5335e4b5d64adcaf3ee6b4da5f b/a9/0050b6f167bb5335e4b5d64adcaf3ee6b4da5f
new file mode 100644 (file)
index 0000000..100599c
--- /dev/null
@@ -0,0 +1,79 @@
+Return-Path: <awg@lagos.xvx.ca>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 054BE431FC7\r
+       for <notmuch@notmuchmail.org>; Sat, 24 Mar 2012 17:27:22 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_NONE=-0.0001] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id Y8Bzp311sNkM for <notmuch@notmuchmail.org>;\r
+       Sat, 24 Mar 2012 17:27:20 -0700 (PDT)\r
+Received: from idcmail-mo1so.shaw.ca (idcmail-mo1so.shaw.ca [24.71.223.10])\r
+       by olra.theworths.org (Postfix) with ESMTP id 597CC431FAE\r
+       for <notmuch@notmuchmail.org>; Sat, 24 Mar 2012 17:27:20 -0700 (PDT)\r
+Received: from pd3ml2so-ssvc.prod.shaw.ca ([10.0.141.138])\r
+       by pd2mo1so-svcs.prod.shaw.ca with ESMTP; 24 Mar 2012 18:27:19 -0600\r
+X-Cloudmark-SP-Filtered: true\r
+X-Cloudmark-SP-Result: v=1.1 cv=w8ylZ/s5/CpB4NtJ57cq/Y3wf+h+jIFeVVN4WVEh/uc=\r
+       c=1 sm=1\r
+       a=saxgr0PviV8A:10 a=BLceEmwcHowA:10 a=yQp6g8lIsgqumF79BAsFDg==:17\r
+       a=mwQa1gFwvGsKjbHVRSwA:9 a=hYvXwCOoY5X3fdiITH4A:7 a=M5MoQqlICDDvGSWE:21\r
+       a=dcSauvYQjqSYlL5g:21 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117\r
+Received: from unknown (HELO lagos.xvx.ca) ([96.52.216.56])\r
+       by pd3ml2so-dmz.prod.shaw.ca with ESMTP; 24 Mar 2012 18:27:19 -0600\r
+Received: by lagos.xvx.ca (Postfix, from userid 1000)\r
+       id E331E8004204; Sat, 24 Mar 2012 18:27:18 -0600 (MDT)\r
+From: Adam Wolfe Gordon <awg+notmuch@xvx.ca>\r
+To: notmuch@notmuchmail.org\r
+Subject: [BUG/PATCH 0/2] Replying from other addresses in emacs\r
+Date: Sat, 24 Mar 2012 18:27:10 -0600\r
+Message-Id: <1332635232-15269-1-git-send-email-awg+notmuch@xvx.ca>\r
+X-Mailer: git-send-email 1.7.5.4\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Sun, 25 Mar 2012 00:27:22 -0000\r
+\r
+Hi everyone,\r
+\r
+This patch series adds a test for and fixes a bug that Dmitry pointed\r
+out on IRC yesterday:\r
+\r
+When replying to mail sent to an other_address, the CLI correctly sets\r
+the From header to the address that received the message. This works\r
+correctly in the default format and the JSON format.  However, emacs was\r
+ignoring the provided From header and inserting the primary address, due\r
+to an incompatibility between how we construct the header list and how\r
+the `mail-header` function from the message library looks up header\r
+values in the list.\r
+\r
+People with other_addresses who are using the latest reply changes\r
+should probably apply this patch right away. Without it, you might end\r
+up replying to messages from the wrong address.\r
+\r
+Adam Wolfe Gordon (2):\r
+  test: Tests for reply from alternate addresses in emacs\r
+  emacs: Fix replying from alternate addresses\r
+\r
+ emacs/notmuch-mua.el |    4 +-\r
+ test/emacs           |   51 ++++++++++++++++++++++++++++++++++++++++++++++++++\r
+ 2 files changed, 53 insertions(+), 2 deletions(-)\r
+\r
+-- \r
+1.7.5.4\r
+\r