Re: [PATCH 0/4] Allow specifying alternate names for addresses in other_email
[notmuch-archives.git] / 3e / 83763c121837e79cd83d9ca6d3f352b1624ab6
1 Return-Path: <markwalters1009@gmail.com>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5         by olra.theworths.org (Postfix) with ESMTP id 12ED2431FB6\r
6         for <notmuch@notmuchmail.org>; Sat,  4 Feb 2012 09:08:21 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 0.201\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0.201 tagged_above=-999 required=5\r
12         tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
13         FREEMAIL_ENVFROM_END_DIGIT=1, FREEMAIL_FROM=0.001,\r
14         RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
15 Received: from olra.theworths.org ([127.0.0.1])\r
16         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
17         with ESMTP id Qv5AtYHPUNjU for <notmuch@notmuchmail.org>;\r
18         Sat,  4 Feb 2012 09:08:20 -0800 (PST)\r
19 Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com\r
20         [209.85.212.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
21         (No client certificate requested)\r
22         by olra.theworths.org (Postfix) with ESMTPS id 7979C431FAF\r
23         for <notmuch@notmuchmail.org>; Sat,  4 Feb 2012 09:08:20 -0800 (PST)\r
24 Received: by wibhi8 with SMTP id hi8so3640758wib.26\r
25         for <notmuch@notmuchmail.org>; Sat, 04 Feb 2012 09:08:19 -0800 (PST)\r
26 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;\r
27         h=from:to:subject:date:message-id:x-mailer;\r
28         bh=TM847ByFl5GDXmtVQ5VRRfjQAl02x6eTmSco5VmJ8J4=;\r
29         b=vUlu61m6HZjsQx5D3G1myN0Z7taAElZomimIDdj6UM007CUeYK5uIaF0zUUcYHPg2I\r
30         e/u5WSvRDJMFPXe2ul2N6yt6beKZG5gBV4h35OxP6eorDWQB/4EiuRZFHx1ugZjoJcAi\r
31         r2zkCb6foE2Q7Db3Zlj1bvYdR7WHSuMP+n058=\r
32 Received: by 10.180.109.77 with SMTP id hq13mr3815057wib.7.1328375299510;\r
33         Sat, 04 Feb 2012 09:08:19 -0800 (PST)\r
34 Received: from localhost (94-192-233-223.zone6.bethere.co.uk.\r
35  [94.192.233.223])      by mx.google.com with ESMTPS id\r
36  dw7sm13959954wib.4.2012.02.04.09.08.17 (version=TLSv1/SSLv3 cipher=OTHER);\r
37         Sat, 04 Feb 2012 09:08:18 -0800 (PST)\r
38 From: Mark Walters <markwalters1009@gmail.com>\r
39 To: notmuch@notmuchmail.org\r
40 Subject: [PATCH 0/2] Control guessing of the from-address when replying\r
41 Date: Sat,  4 Feb 2012 17:09:08 +0000\r
42 Message-Id: <1328375350-10352-1-git-send-email-markwalters1009@gmail.com>\r
43 X-Mailer: git-send-email 1.7.2.3\r
44 X-BeenThere: notmuch@notmuchmail.org\r
45 X-Mailman-Version: 2.1.13\r
46 Precedence: list\r
47 List-Id: "Use and development of the notmuch mail system."\r
48         <notmuch.notmuchmail.org>\r
49 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
50         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
51 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
52 List-Post: <mailto:notmuch@notmuchmail.org>\r
53 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
54 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
55         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
56 X-List-Received-Date: Sat, 04 Feb 2012 17:08:21 -0000\r
57 \r
58 \r
59 Hello\r
60 \r
61 This patch sets is intended to allow the user more control over the\r
62 From: address when replying to emails. \r
63 \r
64 In notmuch-reply.c the current logic for the From: address looks as\r
65 the main headers, then at the delivery headers, and finally defaults\r
66 to the config file address. This means that the frontends (e.g. emacs)\r
67 cannot tell whether the users primary address is in the From: header\r
68 because the message being replied to was sent to that address, or\r
69 notmuch just fellback to using it as it had no better guess. \r
70 \r
71 The first patch allows the user to control which fallbacks are\r
72 used. The second implements this in emacs so that it does not fallback\r
73 to the primary address; thus, in this case, emacs can ask for the\r
74 address (if notmuch-always-prompt-for-sender is set). The set is not\r
75 heavily tested but appears to work.\r
76 \r
77 There is some bikeshedding available as to what options we should be\r
78 able to pass to the --from= in notmuch-reply.c.\r
79 \r
80 It obviously also needs some tests and some man pages updates.\r
81 \r
82 Finally, we may want a defcustom option for emacs to control which it\r
83 uses (e.g., the user always wants to reply from ther primary address).\r
84 \r
85 \r
86 Best wishes\r
87 \r
88 Mark\r
89 \r
90                   \r