Re: Set "From" based on "To" when replying
authorJani Nikula <jani@nikula.org>
Thu, 2 Feb 2012 17:26:53 +0000 (19:26 +0200)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:43:57 +0000 (09:43 -0800)
6b/1e36e4ba0a63098156a6282f4fd7ba8e009b2b [new file with mode: 0644]

diff --git a/6b/1e36e4ba0a63098156a6282f4fd7ba8e009b2b b/6b/1e36e4ba0a63098156a6282f4fd7ba8e009b2b
new file mode 100644 (file)
index 0000000..f291900
--- /dev/null
@@ -0,0 +1,78 @@
+Return-Path: <jani@nikula.org>\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 5A94E431FBD\r
+       for <notmuch@notmuchmail.org>; Thu,  2 Feb 2012 09:27:04 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.7\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
+       tests=[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 gs2SJvR155bP for <notmuch@notmuchmail.org>;\r
+       Thu,  2 Feb 2012 09:27:03 -0800 (PST)\r
+Received: from mail-lpp01m010-f53.google.com (mail-lpp01m010-f53.google.com\r
+       [209.85.215.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id 76C1B431FAE\r
+       for <notmuch@notmuchmail.org>; Thu,  2 Feb 2012 09:27:03 -0800 (PST)\r
+Received: by lahd3 with SMTP id d3so1526818lah.26\r
+       for <notmuch@notmuchmail.org>; Thu, 02 Feb 2012 09:27:01 -0800 (PST)\r
+Received: by 10.112.40.200 with SMTP id z8mr994969lbk.93.1328203621673;\r
+       Thu, 02 Feb 2012 09:27:01 -0800 (PST)\r
+Received: from localhost (dsl-hkibrasgw4-fe50f800-253.dhcp.inet.fi.\r
+       [84.248.80.253])\r
+       by mx.google.com with ESMTPS id xz3sm2498907lab.7.2012.02.02.09.26.59\r
+       (version=SSLv3 cipher=OTHER); Thu, 02 Feb 2012 09:27:00 -0800 (PST)\r
+From: Jani Nikula <jani@nikula.org>\r
+To: Simon Campese <notmuchmail_org@campese.de>, notmuch@notmuchmail.org\r
+Subject: Re: Set "From" based on "To" when replying\r
+In-Reply-To: <87obtx5as1.fsf@tu-dortmund.de>\r
+References: <87obtx5as1.fsf@tu-dortmund.de>\r
+User-Agent: Notmuch/0.11+139~g4340989 (http://notmuchmail.org) Emacs/23.3.1\r
+       (i686-pc-linux-gnu)\r
+Date: Thu, 02 Feb 2012 19:26:53 +0200\r
+Message-ID: <87obthxi1u.fsf@nikula.org>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\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: Thu, 02 Feb 2012 17:27:04 -0000\r
+\r
+On Sat, 21 Jan 2012 16:35:10 +0100, Simon Campese <notmuchmail_org@campese.de> wrote:\r
+> Dear Community,\r
+> \r
+> I've got my own domain and when registering or shopping at some website,\r
+> I always use email addresses of the form "websitename@mydomain.org", so\r
+> for example I use "amazon@mydomain.org" when shopping at amazon. The\r
+> reason for this is categorizing incoming mail on the one hand, and\r
+> immediately being able to spot the source of spam on the other hand. \r
+> \r
+> I would like to implement the following behaviour: When replying to a\r
+> mail that has "something@mydomain.org" in the "To"-header, I would like\r
+> to have the "From"-header of the reply to be automatically set to this\r
+> address. \r
+> \r
+> Is there some kind of reply-hook in notmuch where one could put an\r
+> appropriate function? \r
+\r
+Do you have all those email addresses in the user.other_email\r
+configuration option in your ~/.notmuch-config? It should do the trick,\r
+though I can see that it might get a bit tedious if you use plenty of\r
+email addresses like above.\r
+\r
+BR,\r
+Jani.\r