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 B07F5431FBD for ; Wed, 23 May 2012 03:29:30 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -2.3 X-Spam-Level: X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_MED=-2.3] 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 Ck1GHF+aD9tx for ; Wed, 23 May 2012 03:29:30 -0700 (PDT) Received: from max.feld.cvut.cz (max.feld.cvut.cz [147.32.192.36]) by olra.theworths.org (Postfix) with ESMTP id 1B832431FAF for ; Wed, 23 May 2012 03:29:30 -0700 (PDT) Received: from localhost (unknown [192.168.200.4]) by max.feld.cvut.cz (Postfix) with ESMTP id 64A2D3CFE76; Wed, 23 May 2012 12:29:29 +0200 (CEST) X-Virus-Scanned: IMAP AMAVIS Received: from max.feld.cvut.cz ([192.168.200.1]) by localhost (styx.feld.cvut.cz [192.168.200.4]) (amavisd-new, port 10044) with ESMTP id EjUR17fDQwtk; Wed, 23 May 2012 12:29:27 +0200 (CEST) Received: from imap.feld.cvut.cz (imap.feld.cvut.cz [147.32.192.34]) by max.feld.cvut.cz (Postfix) with ESMTP id D3E9C3CFE74; Wed, 23 May 2012 12:29:27 +0200 (CEST) Received: from steelpick.2x.cz (note-sojka.felk.cvut.cz [147.32.86.30]) (Authenticated sender: sojkam1) by imap.feld.cvut.cz (Postfix) with ESMTPSA id CAC5C660968; Wed, 23 May 2012 12:29:27 +0200 (CEST) Received: from wsh by steelpick.2x.cz with local (Exim 4.77) (envelope-from ) id 1SX8op-0005F1-Oc; Wed, 23 May 2012 12:29:27 +0200 From: Michal Sojka To: Doug Penner , Notmuch Mail Mailing List Subject: Re: Sending from multiple accounts In-Reply-To: References: User-Agent: Notmuch/0.13+14~g2d2a5a4 (http://notmuchmail.org) Emacs/23.4.1 (x86_64-pc-linux-gnu) Date: Wed, 23 May 2012 12:29:27 +0200 Message-ID: <87likjur5k.fsf@steelpick.2x.cz> 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: Wed, 23 May 2012 10:29:30 -0000 Hi Doug, Doug Penner writes: > I am in the process of trying to migrate from alpine (which handles > separate accounts *very* distinctly) to notmuch (which combines them). I > have no problem with incoming e-mails being combined (actually looking > forward to it) but am having a little trouble configuring outgoing e-mails > to work correctly. > > I am currently using the vim interface (never like emacs, sorry) and have > noticed that when replying, notmuch correctly uses the appropriate e-mail > address (as defined in the To: or Cc: fields of the original), but does > not have the ability to change the sender's "name". > > Ex: My "name" for my gmail account is "Doug Penner" (as you probably > noticed with this on), but I also manage some other accounts where I do > not go by this name. I manage a local organization's e-mail and need my > sending name to be non-personal (ex: "This organization's Webmaster"). I > can manually change the name before sending, but this gets very > repetitive and annoying. > > > Is there any way to add names to the "alternate e-mails" setting in the > .notmuch-config file? I don't think so. I use some elisp hooks within emacs interface for similar functionality but this wouldn't help in your case. > I've tried switching to the standard "My Name" and it then > completely fails to even detect that e-mail address as mine. This should not be too hard to implement. There are gmime functions for email address manipulations which can be used to parse email addresses from .notmuch-config and to separate names from addresses. Regards, -Michal