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 D0DD0431FAF for ; Tue, 18 Nov 2014 19:33:15 -0800 (PST) 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 IYbcYlUW2yEn for ; Tue, 18 Nov 2014 19:33:08 -0800 (PST) X-Greylist: delayed 960 seconds by postgrey-1.32 at olra; Tue, 18 Nov 2014 19:33:08 PST Received: from youngberry.canonical.com (youngberry.canonical.com [91.189.89.112]) by olra.theworths.org (Postfix) with ESMTP id 8EDFE431FAE for ; Tue, 18 Nov 2014 19:33:08 -0800 (PST) Received: from ip-64-134-25-165.public.wayport.net ([64.134.25.165] helo=narsil) by youngberry.canonical.com with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1XqvlS-0002mE-N3; Wed, 19 Nov 2014 03:17:06 +0000 Received: by narsil (Postfix, from userid 1000) id A6CB51601AE3; Tue, 18 Nov 2014 21:17:05 -0600 (CST) From: Michael Hudson-Doyle To: Jameson Graef Rollins , Notmuch Mail Subject: Re: auto-choosing reply addresses in notmuch-emacs In-Reply-To: <87vbmhmrnb.fsf@servo.finestructure.net> References: <87vbmhmrnb.fsf@servo.finestructure.net> User-Agent: Notmuch/0.18 (http://notmuchmail.org) Emacs/24.3.1 (x86_64-pc-linux-gnu) Date: Tue, 18 Nov 2014 21:17:05 -0600 Message-ID: <87ppcjq3pq.fsf@canonical.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" 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, 19 Nov 2014 03:33:16 -0000 --=-=-= Content-Type: text/plain Jameson Graef Rollins writes: > Hi, folks. I wonder if anyone knows of a way to tell the emacs client > to use different email addresses to respond to mail from different > sources. So for instance, I would like to respond to mail to one > mailing list from one address, and to another mailing list from a > different address. Ideally I would be able to set up some sort of > filter rules such that if the mail is from ".*@example.com" I would > respond with my me@example.com address, and if the mail is from > ".*@example.org" I would respond with my jrollins@finestructure.net > address. > > Does anyone already do anything like this? I would how hard it would be > to setup built-in support for something like that. Given that notmuch > generates replies, maybe we could add it to the notmuch cli somehow, > with some new config fields? You can use gnus-alias for this. Put (autoload 'gnus-alias-determine-identity "gnus-alias" "" t) (add-hook 'message-setup-hook 'gnus-alias-determine-identity) in .emacs and then M-x customize-group gnus-alias. I would be more helpful but I no longer need this functionality and have forgotten how it works :) Cheers, mwh --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCAAGBQJUbAuxAAoJEBHfQpTMo5iTRZMP/RBQ8XlzRqhCDIwyqLCZW06o pjvuqWwgdlAEThVjBkQnBS+MJ0vARMYx7xXyFEc5cgGjHj+0YDRc7eKUBytbdC0c zKF33pqG7uLG2zUL5N+dzZho/YmktlNnQNg229aWqFQ8+FzEoPG9M/0Fusg/Bw96 m8UgTTmq+AaysDptNGT0PjyvDpxbmtKdc42VeVt5FDfaha5FeXt5guF3KBbmcI1W /0RRAdO1TeoCR+W34gm4Kahpvqni3Cn8JQP7FTqNCPDqJSw1tUNNFuQiJchqcwxX /ufLHe/GM0ESBMxtoEAnIHL4DWO3bbnHQCC4/MNjaN65VzstFLjRueZ1A0WAFBi6 ooVQzsWBcMFWP+hyXewyyA1xd5lLoLduBm5HNXpsclKeG7UOVjCoPMVYmtLG4Cac EzKzEGzxAZ9/4S5IOxAe6vgen6gSnfRbT4KqYGJPRAmd6T4mfxLaGqTiGqwvnqY5 qLtp1r9WiahWT4Fuohg45YF9a5b6Ew8O1ILUXZotWzvvAVeZmQrvSSDZSXHZWrde 2ojbsSZ+kGhZ5FeytPrzPFKrUESGOf5h9X8qcf84mxp6G4wpmGZq83N4/rWUjdty 9rNNgUUSTLTt9UE1EpZUPS0ljeYEQC7cXO/TN5ZRdiIwKbsf02oTTLHUzF12iq7s FOXACKSictWSRHwnwsJ9 =A27w -----END PGP SIGNATURE----- --=-=-=--