From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id A8B606DE0946 for ; Tue, 1 Nov 2016 11:53:33 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.006 X-Spam-Level: X-Spam-Status: No, score=-0.006 tagged_above=-999 required=5 tests=[AWL=0.005, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] 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 x00zQq1HwD65 for ; Tue, 1 Nov 2016 11:53:33 -0700 (PDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by arlo.cworth.org (Postfix) with ESMTPS id DE4116DE0355 for ; Tue, 1 Nov 2016 11:53:32 -0700 (PDT) Received: from remotemail by fethera.tethera.net with local (Exim 4.84_2) (envelope-from ) id 1c1eBL-0004sT-2I; Tue, 01 Nov 2016 14:53:11 -0400 Received: (nullmailer pid 22508 invoked by uid 1000); Tue, 01 Nov 2016 18:53:25 -0000 From: David Bremner To: =?utf-8?Q?J=C3=B6rg?= Volbers , notmuch@notmuchmail.org Subject: Re: emacs notmuch-reply: Change FROM adress according to TO address In-Reply-To: <87zilji2im.fsf@joergvolbers.de> References: <87zilji2im.fsf@joergvolbers.de> Date: Tue, 01 Nov 2016 15:53:25 -0300 Message-ID: <87ins7rpzu.fsf@tesseract.cs.unb.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.22 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: Tue, 01 Nov 2016 18:53:33 -0000 J=C3=B6rg Volbers writes: > [ Unknown signature status ] > Hi there, > > I am using notmuch in Emacs with three different from-addresses (via > mbsync). When replying an email, I currently have to set the FROM-address > manually. What I would like to have is that the FROM-address is set > automagically according to the TO-address. I.e., if someone writes to my > address "foo.com", the reply should come from "foo.com"; if someone > writes to "foo.de", the reply should come from "foo.de". > > I know that I can set the reply address by prefixing the command 'r', > which lets me choose my sender address, but that's not exactly > automatically. > > Any hints are appreciated! (please CC me since I am not subscribing the > list) This should be automatic for those To addresses listed in user.primary_email user.other_email in ~/.notmuch-config. You can set this by hand or using "notmuch config set user.other_email bar@foo.de;bar@foo.com" d