Gnus development mailing list
 help / color / mirror / Atom feed
From: dick.r.chiang@gmail.com
To: Pankaj Jangid <p4j@j4d.net>
Cc: ding@gnus.org
Subject: Re: How to change from address while in message buffer?
Date: Mon, 06 Jan 2020 16:42:54 -0500	[thread overview]
Message-ID: <874kx8tg69.fsf@dick> (raw)
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")

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.



  reply	other threads:[~2020-01-06 21:42 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-06  9:57 Pankaj Jangid
2020-01-06 21:42 ` dick.r.chiang [this message]
2020-01-06 22:33   ` Eric Abrahamsen
2020-01-06 23:39     ` dick.r.chiang
2020-01-07  4:12       ` Eric Abrahamsen
2020-01-07  6:29         ` Pankaj Jangid
2020-01-07 17:32           ` If you read this instead of my name it worked for me
2020-01-07 17:43           ` Eric Abrahamsen
2020-01-07  6:28   ` Vincent Bernat
2020-01-09  1:55     ` 황병희
2020-01-10  5:59       ` Bob Newell
2020-01-18  1:59         ` 황병희
2020-01-07  7:58   ` Vegard Vesterheim
2020-01-07 10:44     ` Pankaj Jangid
2020-01-07 11:41       ` Vegard Vesterheim
2020-01-07 16:19         ` Pankaj Jangid
2020-01-06 22:08 ` Malcolm Purvis
2020-01-07  6:38   ` Pankaj Jangid
2020-02-07 13:42     ` Helmut Waitzmann
2020-02-07 22:09     ` Helmut Waitzmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874kx8tg69.fsf@dick \
    --to=dick.r.chiang@gmail.com \
    --cc=ding@gnus.org \
    --cc=p4j@j4d.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).