Re: [PATCH v4 08/16] reorganize indexing of multipart/signed and multipart/encrypted
[notmuch-archives.git] / 4d / 2efbbd669755918faf768f645dcfb3bc180e41
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 arlo.cworth.org (Postfix) with ESMTP id C0DA06DE0BF6\r
6  for <notmuch@notmuchmail.org>; Sun, 20 Dec 2015 12:54:54 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at cworth.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.195\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.195 tagged_above=-999 required=5 tests=[AWL=0.375,\r
12   DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
13  FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7,\r
14  RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001]\r
15  autolearn=disabled\r
16 Received: from arlo.cworth.org ([127.0.0.1])\r
17  by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
18  with ESMTP id Lu_cJNeDtPQK for <notmuch@notmuchmail.org>;\r
19  Sun, 20 Dec 2015 12:54:52 -0800 (PST)\r
20 Received: from mail-wm0-f68.google.com (mail-wm0-f68.google.com\r
21  [74.125.82.68]) by arlo.cworth.org (Postfix) with ESMTPS id 125DB6DE0244 for\r
22  <notmuch@notmuchmail.org>; Sun, 20 Dec 2015 12:54:52 -0800 (PST)\r
23 Received: by mail-wm0-f68.google.com with SMTP id l126so10192548wml.1\r
24  for <notmuch@notmuchmail.org>; Sun, 20 Dec 2015 12:54:51 -0800 (PST)\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
26  h=from:to:subject:in-reply-to:references:user-agent:date:message-id\r
27  :mime-version:content-type;\r
28  bh=yz068dX5QcvPqrqss+rhVHm+WWEJQSBikcocRSQ411s=;\r
29  b=r8O4tEHNUMa/vqI+yteGm7pJtoNyt3OlQXhk82sHseMAJgGClWA+XBGuEPb2IXcWEK\r
30  F8Kpl3h9pyFsdzI83EytbAkU9RC+5XM5RGipH46otkwgOH35oXZG55THDQlPCABJ7g4s\r
31  p/t19vlrL5RDhqVGe0OotmZIAZcg6xxgiJzNqlg32j7IPN7ddW0kdF8tDuMOZlrmai7o\r
32  I975WXFkjOLO2kN/6/58mvmrcrZcg38BCtutxRFS6MYGdgtTSgXoxpvI2Q57kCLdD6WO\r
33  762tCfcsS5WwqxddcqPg69M8uTK78IFoqMBl9Lvw9Vb9CpGniNp/yC6Lue2bFAAH4DL3\r
34  No1g==\r
35 X-Received: by 10.194.6.196 with SMTP id d4mr16263716wja.120.1450644890509;\r
36  Sun, 20 Dec 2015 12:54:50 -0800 (PST)\r
37 Received: from localhost (5751dfa2.skybroadband.com. [87.81.223.162])\r
38  by smtp.gmail.com with ESMTPSA id bg10sm24941680wjb.46.2015.12.20.12.54.49\r
39  (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\r
40  Sun, 20 Dec 2015 12:54:49 -0800 (PST)\r
41 From: Mark Walters <markwalters1009@gmail.com>\r
42 To: Jinwoo Lee <jinwoo68@gmail.com>, notmuch@notmuchmail.org\r
43 Subject: Re: emacs: Wrong "From" address when forwarding a mail\r
44 In-Reply-To: <yq65fuyw3ohb.fsf@jinwoo-macbookair.roam.corp.google.com>\r
45 References: <yq65fuyw3ohb.fsf@jinwoo-macbookair.roam.corp.google.com>\r
46 User-Agent: Notmuch/0.18.1+485~gca076ce (http://notmuchmail.org) Emacs/24.4.1\r
47  (x86_64-pc-linux-gnu)\r
48 Date: Sun, 20 Dec 2015 20:54:48 +0000\r
49 Message-ID: <8760zsyh5z.fsf@qmul.ac.uk>\r
50 MIME-Version: 1.0\r
51 Content-Type: text/plain\r
52 X-BeenThere: notmuch@notmuchmail.org\r
53 X-Mailman-Version: 2.1.20\r
54 Precedence: list\r
55 List-Id: "Use and development of the notmuch mail system."\r
56  <notmuch.notmuchmail.org>\r
57 List-Unsubscribe: <https://notmuchmail.org/mailman/options/notmuch>,\r
58  <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
59 List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
60 List-Post: <mailto:notmuch@notmuchmail.org>\r
61 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
62 List-Subscribe: <https://notmuchmail.org/mailman/listinfo/notmuch>,\r
63  <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
64 X-List-Received-Date: Sun, 20 Dec 2015 20:54:54 -0000\r
65 \r
66 \r
67 Hi\r
68 \r
69 On Sun, 20 Dec 2015, Jinwoo Lee <jinwoo68@gmail.com> wrote:\r
70 > I have two accounts set up in my notmuch configuration.  And when I'm\r
71 > forwarding a mail using notmuch-show-forward-message, it always uses my\r
72 > primary account as its From address no matter which account that\r
73 > original mail has been delivered to.\r
74 >\r
75 > For example:\r
76 > 1. I got a mail delivered to my personal address, personal@somemail.com,\r
77 >    which is my secondary account.\r
78 > 2. I want to forward the mail to someone else and I press 'f' for\r
79 >    notmuch-show-forward-message.\r
80 > 3. It always uses my corp address, corp@somecompany.com, which is my\r
81 >    primary account, as the From address, instead of\r
82 >    personal@somemail.com.\r
83 >\r
84 > This is quite annoying and has some privacy issues because my corporate\r
85 > account may be scanned by my employer.  I'm working around this by doing\r
86 > 'C-u f', which allows me to choose the From address, but it's very easy\r
87 > to just press 'f' and make a mistake.\r
88 \r
89 You can get around some of this by setting\r
90 notmuch-always-prompt-for-sender to t (it is a customizable\r
91 variable). This means that whenever you create a new message or forward\r
92 a message you will be prompted to choose a sender address.\r
93 \r
94 Indeed, I am surprised you don't find it annoying that, when you start a\r
95 new personal email (e.g., with "m"), notmuch uses your corp address.\r
96 \r
97 > Can we make notmuch-show-forward-message behave like\r
98 > notmuch-show-reply-sender, which chooses the From address correctly?\r
99 \r
100 We could do this, but it's not clear to me that it is better than what\r
101 we have. Indeed, under your suggestion, suppose someone with their\r
102 personal address as their primary address received an idiotic email from\r
103 their boss, which they forward to their wife saying "what an\r
104 idiot". Suddenly, it is now being read by work...\r
105 \r
106 Overall, I don't think is is possible for notmuch  to get this right\r
107 enough of the time to make anything other than\r
108 notmuch-always-prompt-for-sender sensible in this sort of situation.\r
109 \r
110 Best wishes\r
111 \r
112 Mark\r