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 A4970431FAF for ; Sat, 21 Jan 2012 07:42:30 -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=[RCVD_IN_DNSWL_NONE=-0.0001] 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 hcnegW2Utvh6 for ; Sat, 21 Jan 2012 07:42:29 -0800 (PST) X-Greylist: delayed 434 seconds by postgrey-1.32 at olra; Sat, 21 Jan 2012 07:42:29 PST Received: from smtp01.worldserver.net (smtp01.worldserver.net [217.13.200.37]) by olra.theworths.org (Postfix) with ESMTP id BA268431FAE for ; Sat, 21 Jan 2012 07:42:29 -0800 (PST) Received: from localhost (cable-83.217.143.231.coditel.net [83.217.143.231]) (Authenticated sender: mailer@campese.de) by smtp01.worldserver.net (Postfix) with ESMTPSA id B6446227BD; Sat, 21 Jan 2012 16:35:11 +0100 (CET) From: Simon Campese To: notmuch@notmuchmail.org Cc: Subject: Set "From" based on "To" when replying Date: Sat, 21 Jan 2012 16:35:10 +0100 Message-ID: <87obtx5as1.fsf@tu-dortmund.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailman-Approved-At: Thu, 02 Feb 2012 08:56:31 -0800 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: Sat, 21 Jan 2012 15:42:30 -0000 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? Thank you very much for your help, Simon