From: Mark Walters Date: Sun, 20 Dec 2015 20:54:48 +0000 (+0000) Subject: Re: emacs: Wrong "From" address when forwarding a mail X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e94f1b58219e26e099ef64c64902f8623beb86d7;p=notmuch-archives.git Re: emacs: Wrong "From" address when forwarding a mail --- diff --git a/4d/2efbbd669755918faf768f645dcfb3bc180e41 b/4d/2efbbd669755918faf768f645dcfb3bc180e41 new file mode 100644 index 000000000..9a8d20163 --- /dev/null +++ b/4d/2efbbd669755918faf768f645dcfb3bc180e41 @@ -0,0 +1,112 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by arlo.cworth.org (Postfix) with ESMTP id C0DA06DE0BF6 + for ; Sun, 20 Dec 2015 12:54:54 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at cworth.org +X-Spam-Flag: NO +X-Spam-Score: -0.195 +X-Spam-Level: +X-Spam-Status: No, score=-0.195 tagged_above=-999 required=5 tests=[AWL=0.375, + DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, + FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, + RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] + autolearn=disabled +Received: from arlo.cworth.org ([127.0.0.1]) + by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id Lu_cJNeDtPQK for ; + Sun, 20 Dec 2015 12:54:52 -0800 (PST) +Received: from mail-wm0-f68.google.com (mail-wm0-f68.google.com + [74.125.82.68]) by arlo.cworth.org (Postfix) with ESMTPS id 125DB6DE0244 for + ; Sun, 20 Dec 2015 12:54:52 -0800 (PST) +Received: by mail-wm0-f68.google.com with SMTP id l126so10192548wml.1 + for ; Sun, 20 Dec 2015 12:54:51 -0800 (PST) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; + h=from:to:subject:in-reply-to:references:user-agent:date:message-id + :mime-version:content-type; + bh=yz068dX5QcvPqrqss+rhVHm+WWEJQSBikcocRSQ411s=; + b=r8O4tEHNUMa/vqI+yteGm7pJtoNyt3OlQXhk82sHseMAJgGClWA+XBGuEPb2IXcWEK + F8Kpl3h9pyFsdzI83EytbAkU9RC+5XM5RGipH46otkwgOH35oXZG55THDQlPCABJ7g4s + p/t19vlrL5RDhqVGe0OotmZIAZcg6xxgiJzNqlg32j7IPN7ddW0kdF8tDuMOZlrmai7o + I975WXFkjOLO2kN/6/58mvmrcrZcg38BCtutxRFS6MYGdgtTSgXoxpvI2Q57kCLdD6WO + 762tCfcsS5WwqxddcqPg69M8uTK78IFoqMBl9Lvw9Vb9CpGniNp/yC6Lue2bFAAH4DL3 + No1g== +X-Received: by 10.194.6.196 with SMTP id d4mr16263716wja.120.1450644890509; + Sun, 20 Dec 2015 12:54:50 -0800 (PST) +Received: from localhost (5751dfa2.skybroadband.com. [87.81.223.162]) + by smtp.gmail.com with ESMTPSA id bg10sm24941680wjb.46.2015.12.20.12.54.49 + (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); + Sun, 20 Dec 2015 12:54:49 -0800 (PST) +From: Mark Walters +To: Jinwoo Lee , notmuch@notmuchmail.org +Subject: Re: emacs: Wrong "From" address when forwarding a mail +In-Reply-To: +References: +User-Agent: Notmuch/0.18.1+485~gca076ce (http://notmuchmail.org) Emacs/24.4.1 + (x86_64-pc-linux-gnu) +Date: Sun, 20 Dec 2015 20:54:48 +0000 +Message-ID: <8760zsyh5z.fsf@qmul.ac.uk> +MIME-Version: 1.0 +Content-Type: text/plain +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.20 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Sun, 20 Dec 2015 20:54:54 -0000 + + +Hi + +On Sun, 20 Dec 2015, Jinwoo Lee wrote: +> I have two accounts set up in my notmuch configuration. And when I'm +> forwarding a mail using notmuch-show-forward-message, it always uses my +> primary account as its From address no matter which account that +> original mail has been delivered to. +> +> For example: +> 1. I got a mail delivered to my personal address, personal@somemail.com, +> which is my secondary account. +> 2. I want to forward the mail to someone else and I press 'f' for +> notmuch-show-forward-message. +> 3. It always uses my corp address, corp@somecompany.com, which is my +> primary account, as the From address, instead of +> personal@somemail.com. +> +> This is quite annoying and has some privacy issues because my corporate +> account may be scanned by my employer. I'm working around this by doing +> 'C-u f', which allows me to choose the From address, but it's very easy +> to just press 'f' and make a mistake. + +You can get around some of this by setting +notmuch-always-prompt-for-sender to t (it is a customizable +variable). This means that whenever you create a new message or forward +a message you will be prompted to choose a sender address. + +Indeed, I am surprised you don't find it annoying that, when you start a +new personal email (e.g., with "m"), notmuch uses your corp address. + +> Can we make notmuch-show-forward-message behave like +> notmuch-show-reply-sender, which chooses the From address correctly? + +We could do this, but it's not clear to me that it is better than what +we have. Indeed, under your suggestion, suppose someone with their +personal address as their primary address received an idiotic email from +their boss, which they forward to their wife saying "what an +idiot". Suddenly, it is now being read by work... + +Overall, I don't think is is possible for notmuch to get this right +enough of the time to make anything other than +notmuch-always-prompt-for-sender sensible in this sort of situation. + +Best wishes + +Mark