--- /dev/null
+Return-Path: <markwalters1009@gmail.com>\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 12ED2431FB6\r
+ for <notmuch@notmuchmail.org>; Sat, 4 Feb 2012 09:08:21 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0.201\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0.201 tagged_above=-999 required=5\r
+ tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+ FREEMAIL_ENVFROM_END_DIGIT=1, FREEMAIL_FROM=0.001,\r
+ RCVD_IN_DNSWL_LOW=-0.7] 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 Qv5AtYHPUNjU for <notmuch@notmuchmail.org>;\r
+ Sat, 4 Feb 2012 09:08:20 -0800 (PST)\r
+Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com\r
+ [209.85.212.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+ (No client certificate requested)\r
+ by olra.theworths.org (Postfix) with ESMTPS id 7979C431FAF\r
+ for <notmuch@notmuchmail.org>; Sat, 4 Feb 2012 09:08:20 -0800 (PST)\r
+Received: by wibhi8 with SMTP id hi8so3640758wib.26\r
+ for <notmuch@notmuchmail.org>; Sat, 04 Feb 2012 09:08:19 -0800 (PST)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;\r
+ h=from:to:subject:date:message-id:x-mailer;\r
+ bh=TM847ByFl5GDXmtVQ5VRRfjQAl02x6eTmSco5VmJ8J4=;\r
+ b=vUlu61m6HZjsQx5D3G1myN0Z7taAElZomimIDdj6UM007CUeYK5uIaF0zUUcYHPg2I\r
+ e/u5WSvRDJMFPXe2ul2N6yt6beKZG5gBV4h35OxP6eorDWQB/4EiuRZFHx1ugZjoJcAi\r
+ r2zkCb6foE2Q7Db3Zlj1bvYdR7WHSuMP+n058=\r
+Received: by 10.180.109.77 with SMTP id hq13mr3815057wib.7.1328375299510;\r
+ Sat, 04 Feb 2012 09:08:19 -0800 (PST)\r
+Received: from localhost (94-192-233-223.zone6.bethere.co.uk.\r
+ [94.192.233.223]) by mx.google.com with ESMTPS id\r
+ dw7sm13959954wib.4.2012.02.04.09.08.17 (version=TLSv1/SSLv3 cipher=OTHER);\r
+ Sat, 04 Feb 2012 09:08:18 -0800 (PST)\r
+From: Mark Walters <markwalters1009@gmail.com>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 0/2] Control guessing of the from-address when replying\r
+Date: Sat, 4 Feb 2012 17:09:08 +0000\r
+Message-Id: <1328375350-10352-1-git-send-email-markwalters1009@gmail.com>\r
+X-Mailer: git-send-email 1.7.2.3\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: Sat, 04 Feb 2012 17:08:21 -0000\r
+\r
+\r
+Hello\r
+\r
+This patch sets is intended to allow the user more control over the\r
+From: address when replying to emails. \r
+\r
+In notmuch-reply.c the current logic for the From: address looks as\r
+the main headers, then at the delivery headers, and finally defaults\r
+to the config file address. This means that the frontends (e.g. emacs)\r
+cannot tell whether the users primary address is in the From: header\r
+because the message being replied to was sent to that address, or\r
+notmuch just fellback to using it as it had no better guess. \r
+\r
+The first patch allows the user to control which fallbacks are\r
+used. The second implements this in emacs so that it does not fallback\r
+to the primary address; thus, in this case, emacs can ask for the\r
+address (if notmuch-always-prompt-for-sender is set). The set is not\r
+heavily tested but appears to work.\r
+\r
+There is some bikeshedding available as to what options we should be\r
+able to pass to the --from= in notmuch-reply.c.\r
+\r
+It obviously also needs some tests and some man pages updates.\r
+\r
+Finally, we may want a defcustom option for emacs to control which it\r
+uses (e.g., the user always wants to reply from ther primary address).\r
+\r
+\r
+Best wishes\r
+\r
+Mark\r
+\r
+ \r