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