From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/88956 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Vincent Bernat Newsgroups: gmane.emacs.gnus.general Subject: Re: How to change from address while in message buffer? Date: Tue, 07 Jan 2020 07:28:50 +0100 Message-ID: References: <0100016f7a49e83d-b68757b3-72b5-4410-bfd7-5613a32a174b-000000@email.amazonses.com> <874kx8tg69.fsf@dick> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="55687"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) Cc: Pankaj Jangid , ding@gnus.org To: dick.r.chiang@gmail.com Original-X-From: ding-owner+M37159@lists.math.uh.edu Tue Jan 07 18:18:09 2020 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from lists1.math.uh.edu ([129.7.128.208]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iosUY-000A8a-GC for ding-account@gmane.org; Tue, 07 Jan 2020 18:18:07 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.92.3) (envelope-from ) id 1iosUS-0005VL-Rc; Tue, 07 Jan 2020 11:18:00 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtps (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3) (envelope-from ) id 1ioiMT-00068p-QL for ding@lists.math.uh.edu; Tue, 07 Jan 2020 00:29:05 -0600 Original-Received: from quimby.gnus.org ([95.216.78.240]) by mx2.math.uh.edu with esmtps (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3) (envelope-from ) id 1ioiMR-0000Po-SW for ding@lists.math.uh.edu; Tue, 07 Jan 2020 00:29:05 -0600 Original-Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by quimby.gnus.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ioiMJ-0002JG-T5 for ding@gnus.org; Tue, 07 Jan 2020 07:28:59 +0100 Original-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id A40294FF; Tue, 7 Jan 2020 01:28:53 -0500 (EST) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Tue, 07 Jan 2020 01:28:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=luffy.cx; h=from :to:cc:subject:references:date:in-reply-to:message-id :mime-version:content-type:content-transfer-encoding; s=fm2; bh= V2ncG3n1MvlWn8JU7f3PrOIUKy4/P5kjQgLCsUjkwtM=; b=XQobUM1hQFvUxQCc vggg8/f6L3s/ouYe662SpQYrvZEsa636vTFuNydoaTb6UHK8EZwIPgICaVgAO7fg e89hGKW/9N0VIKDYaS0e2dOq8lhLacve5nHC5AEG7yaCkTCLtJXbk1/J9qIEEWSx ZUIxYMnLNo+12P4mRqAVcmUGvcUL3J6BzFg0SJR68jYehC14CCvhPkEMLEacqiKR WXxN28MeNzXnclG6xkAngYGy4pSFyw0GZiMCGX+RBxmPbJkVnui0EMxb+GZxCgxH p0mH+M+lEVHkoQRSQ6LKDN4LwxQl2bWD/B0H8r18FTkjP3rhTFmn3VlO8q158vhL jcDhAw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=V2ncG3n1MvlWn8JU7f3PrOIUKy4/P5kjQgLCsUjkw tM=; b=bBvan1e4/oNFtAyVftSlxAG5R5L9wMOKBVWZ3k5K2NS75n5a4K0EF45Cj wm494QdjY865EPjX1x+LuOi4W/Xi67eXW6n/rfkASzWQZQC9PBiVtbtZebRJMfG+ /aZjH6rOgk/S6IE1j08BC/OzN2+L01x9ORu0fLkPh1VB5E3qTWJ3JwOo2+cIBXlP zm+UDguNI1xjkKDpKDQrYSAkZvqXGCioi/d5gFbOo0iPeGUjmkmr/T4vm7hSDCMM c8vf9JdGjWjqIUehu5EtlJYkkOiaqoIpCc8tOdZCUeDqRYlCQVDZDbz8pfUGCz5w muDDsVT1q8kHt8DfXeEQgqDeX2/Zg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrvdehuddgleejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufhffjgfkfgggtgfgsehtke ertddtreejnecuhfhrohhmpeggihhntggvnhhtuceuvghrnhgrthcuoegsvghrnhgrthes lhhufhhfhidrtgigqeenucffohhmrghinhepghhithhhuhgsrdgtohhmnecukfhppeeltd drledtrdekjedrudelgeenucfrrghrrghmpehmrghilhhfrhhomhepsggvrhhnrghtsehl uhhffhihrdgtgienucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Original-Received: from neo.luffy.cx (lfbn-idf1-1-1651-194.w90-90.abo.wanadoo.fr [90.90.87.194]) by mail.messagingengine.com (Postfix) with ESMTPA id 6A48830602DE; Tue, 7 Jan 2020 01:28:52 -0500 (EST) Original-Received: by neo.luffy.cx (Postfix, from userid 500) id D8DD1647; Tue, 7 Jan 2020 07:28:50 +0100 (CET) In-Reply-To: <874kx8tg69.fsf@dick> (dick r. chiang's message of "Mon, 06 Jan 2020 16:42:54 -0500") List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:88956 Archived-At: ❦ 6 janvier 2020 16:42 -05, dick.r.chiang@gmail.com: > PJ> how can I change the *From* header to something other than my default > PJ> user-mail-address. > > Contextually setting the *From* header based on whichever imap account I was > reading from proved a fairly tough problem. I eventually got it right, but > not before embarrassingly sending replies from my personal email address to my > professional one. > > I am very curious how others deal with what must be a very common > problem. I am using gnus-posting-styles along with gnus-identities: https://github.com/vincentbernat/dot.emacs/blob/master/lisp/vbe-gnus-identities.el#L32-L91 -- Don't stop with your first draft. - The Elements of Programming Style (Kernighan & Plauger)