From b14df88d26330744f485ebcf6224fc9d0753f1a2 Mon Sep 17 00:00:00 2001 From: Tomi Ollila Date: Fri, 3 Feb 2012 13:54:07 +0200 Subject: [PATCH] Re: Set "From" based on "To" when replying --- 9c/5af4a5955767e46cbcde5bd02faf17bae560e6 | 80 +++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 9c/5af4a5955767e46cbcde5bd02faf17bae560e6 diff --git a/9c/5af4a5955767e46cbcde5bd02faf17bae560e6 b/9c/5af4a5955767e46cbcde5bd02faf17bae560e6 new file mode 100644 index 000000000..80a775938 --- /dev/null +++ b/9c/5af4a5955767e46cbcde5bd02faf17bae560e6 @@ -0,0 +1,80 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id EA90C431FAF + for ; Fri, 3 Feb 2012 03:54:09 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 0 +X-Spam-Level: +X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] + autolearn=disabled +Received: from olra.theworths.org ([127.0.0.1]) + by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id mJS45VyfXaFQ for ; + Fri, 3 Feb 2012 03:54:09 -0800 (PST) +Received: from guru.guru-group.fi (guru-group.fi [87.108.86.66]) + by olra.theworths.org (Postfix) with ESMTP id 2D307431FAE + for ; Fri, 3 Feb 2012 03:54:09 -0800 (PST) +Received: by guru.guru-group.fi (Postfix, from userid 501) + id 0029768055; Fri, 3 Feb 2012 13:54:07 +0200 (EET) +From: Tomi Ollila +To: Simon Campese , notmuch@notmuchmail.org +Subject: Re: Set "From" based on "To" when replying +In-Reply-To: <87obtx5as1.fsf@tu-dortmund.de> +References: <87obtx5as1.fsf@tu-dortmund.de> +User-Agent: Notmuch/0.11+146~geb6dc33 (http://notmuchmail.org) Emacs/23.3.1 + (x86_64-unknown-linux-gnu) +X-Face: HhBM'cA~ +MIME-Version: 1.0 +Content-Type: text/plain; charset=us-ascii +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +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: Fri, 03 Feb 2012 11:54:10 -0000 + +On Sat, 21 Jan 2012 16:35:10 +0100, Simon Campese wrote: +> Dear Community, +> +> I've got my own domain and when registering or shopping at some website, +> I always use email addresses of the form "websitename@mydomain.org", so +> for example I use "amazon@mydomain.org" when shopping at amazon. The +> reason for this is categorizing incoming mail on the one hand, and +> immediately being able to spot the source of spam on the other hand. +> +> I would like to implement the following behaviour: When replying to a +> mail that has "something@mydomain.org" in the "To"-header, I would like +> to have the "From"-header of the reply to be automatically set to this +> address. +> +> Is there some kind of reply-hook in notmuch where one could put an +> appropriate function? + +You could (also) check this (or some other with same name) + +https://github.com/altruizine/gnus-alias/blob/master/gnus-alias.el + +( should not be gnus-spesific ) + +I've planned to take a look and write a wiki page but I don't +promise doing any of that soon... + +> Thank you very much for your help, +> +> Simon + +Tomi -- 2.26.2