From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: dick.r.chiang@gmail.com
Cc: Pankaj Jangid <p4j@j4d.net>, ding@gnus.org
Subject: Re: How to change from address while in message buffer?
Date: Mon, 06 Jan 2020 14:33:29 -0800 [thread overview]
Message-ID: <87tv58w6yu.fsf@ericabrahamsen.net> (raw)
In-Reply-To: <874kx8tg69.fsf@dick> (dick r. chiang's message of "Mon, 06 Jan 2020 16:42:54 -0500")
dick.r.chiang@gmail.com writes:
> 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.
I'm almost certainly misunderstanding something here, but can't you do
this with posting styles? When I want to compose a message with a
certain set of styles (including the "From" header) I put point on the
group I want to use to trigger the styles, and use "C-u m" instead of
regular "m".
Admittedly, this is actually kind of annoying and I wish there were a
cleaner way of doing it. But it works just fine.
No?
Eric
next prev parent reply other threads:[~2020-01-06 22:33 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
2020-01-06 22:33 ` Eric Abrahamsen [this message]
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=87tv58w6yu.fsf@ericabrahamsen.net \
--to=eric@ericabrahamsen.net \
--cc=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).