From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/88945 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: dick.r.chiang@gmail.com Newsgroups: gmane.emacs.gnus.general Subject: Re: How to change from address while in message buffer? Date: Mon, 06 Jan 2020 16:42:54 -0500 Message-ID: <874kx8tg69.fsf@dick> References: <0100016f7a49e83d-b68757b3-72b5-4410-bfd7-5613a32a174b-000000@email.amazonses.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="27989"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: ding@gnus.org To: Pankaj Jangid Original-X-From: ding-owner+M37148@lists.math.uh.edu Mon Jan 06 22:58:21 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 1ioaOB-00075Q-7G for ding-account@gmane.org; Mon, 06 Jan 2020 22:58:19 +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 1ioaNg-000159-5T; Mon, 06 Jan 2020 15:57:48 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by lists1.math.uh.edu with esmtps (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3) (envelope-from ) id 1ioa9R-0000vG-Q0 for ding@lists.math.uh.edu; Mon, 06 Jan 2020 15:43:05 -0600 Original-Received: from quimby.gnus.org ([95.216.78.240]) by mx1.math.uh.edu with esmtps (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3) (envelope-from ) id 1ioa9Q-0001j2-D1 for ding@lists.math.uh.edu; Mon, 06 Jan 2020 15:43:05 -0600 Original-Received: from mail-qk1-x731.google.com ([2607:f8b0:4864:20::731]) by quimby.gnus.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ioa9J-0002Yi-TI for ding@gnus.org; Mon, 06 Jan 2020 22:43:00 +0100 Original-Received: by mail-qk1-x731.google.com with SMTP id r14so40829896qke.13 for ; Mon, 06 Jan 2020 13:42:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=Ga/BrUcOkovFe7pqrjXXG7kR5wOqtorOL8plY8b5bkM=; b=Dy/VERBtHD+OpWngohmwArGDW6xOmeQrl1ZEfNdNoQMkF3ctN/vXHiIt0RpuLtIFq3 F824l862Lyihtx+P4vcU1TfkG/ZIH9a76u+9qdAGZbKr5twzHUI37ZRwV/DKZ+/V/Jv7 BG4rLN4gP8MLe33mlp+WqxjA0YHjwZ+GX2yIPgT5hWGPSUktSybiYuekjmFBnk0lGrFQ ukli4HZTjYTH+VX5R7c5A8aWqmQpXjzqq3I9reabyUncY4tjEdNTmsDXQVDdEC4KfUhH jc6IbSKkxQYoRRIaIdwQxAHyyZYmkpii9ENt0kUti8SONbI2eqIxJWrCMhjSQGsKGmNF 05/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=Ga/BrUcOkovFe7pqrjXXG7kR5wOqtorOL8plY8b5bkM=; b=bOtMbJ+SfLxkE+4gS0BZFHQfyWpnQP65sevGBo2EwubMAtAA4OgajoRnq4bqx87kkP dnl/tTz7GGPRHVrsrg0oVRHePmbQMzKwWkatGfiawvLn5dIFuJUhM5cckSi42xLBSXpu dF/xADcOifHWu9RaNyE2icOSo48yeM3wtwJxS1aKjkNQxR9ba97rcTK+GIBBROE3CH9+ f+3iji82WXejKkEVdv4P2TQHJEsZtRskxYc67rUASVRqQ+BEedONaLpThTYsiHtSpKTi 5uML2s4DtRr2SKm44IVPKgdqQt7Skhvp+LzHWPW5ijOPMMg/svJqeaInQq89u0vCnuc8 KhzA== X-Gm-Message-State: APjAAAXhi0CMg7XhU/VLfSydcIWrRZaHprXvLSmuhxvvkDjyBrd7RPX0 k9GAvgD9VAzQD8OdG4YxbhfXQL/n X-Google-Smtp-Source: APXvYqx6DCjQv7dJ77J96+/E6PVLvhPCzB9tdu3ID4ovgDFnfG19lP4UD1Z2FYxlliqP/0oOhByG7A== X-Received: by 2002:a05:620a:15e8:: with SMTP id p8mr78547973qkm.469.1578346976118; Mon, 06 Jan 2020 13:42:56 -0800 (PST) Original-Received: from localhost (pool-100-33-98-8.nycmny.fios.verizon.net. [100.33.98.8]) by smtp.gmail.com with ESMTPSA id e3sm22458167qtj.30.2020.01.06.13.42.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 Jan 2020 13:42:55 -0800 (PST) In-Reply-To: <0100016f7a49e83d-b68757b3-72b5-4410-bfd7-5613a32a174b-000000@email.amazonses.com> (Pankaj Jangid's message of "Mon, 6 Jan 2020 09:57:41 +0000") List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:88945 Archived-At: 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. My soup-to-nuts email solution resides at https://github.com/dickmao/gnus-imap-walkthrough and the 30 lines of elisp that handle context-sensitive *From* are at https://github.com/dickmao/gnus-imap-walkthrough/blob/c1246d335e7029f1ed4e4f3ae9db8f258748b791/dot.gnus#L16-L44 I suspect though that you're looking for a simpler solution.