all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: 38169@debbugs.gnu.org
Subject: bug#38169: Idea: custom From names ("From Personalities")
Date: Mon, 11 Nov 2019 09:18:20 -0800	[thread overview]
Message-ID: <87v9rq49ib.fsf@ericabrahamsen.net> (raw)
In-Reply-To: <87o8xjfaju.8.fsf@jidanni.org>

積丹尼 Dan Jacobson <jidanni@jidanni.org> writes:

> Just the other day I was reading (info "(message) Reply") and I suddenly
> had a new idea: "From personalities". [Feature request].
>
> Let's say we are replying to mom@nurdfamily.org.
> Well, we want our From: headers to say
> From: James Fartdom <james@example.com>,
> or even
> From: Your loving son James <james@example.com>.
>
> But let's instead say we are replying to secretary@plaztziph.com.
> Well in that case we want our From: header to look like
> From: Chairman Fartdom <james@example.com>,
> or even
> From: Chairman J. Fartdom <chair@plaztziph.com>.
> or even
> From: Military Purchasing Director <mpdir@mil.mil>.
>
> Well all this could be accomplished with an alist of patterns of who we
> are replying to, vs. what header we should use, and what is the default
> if no matches.
>
> Note: what if it is a wide reply, and we are replying to both your mom,
> and the CEO? So maybe ask the user what From to use.

This much is already doable, with a clause in `gnus-posting-styles':

((header "From" "secretary@plaztziph.com")
 (address "Chairman Fartdom <chair@plaztziph.com"))

The posting styles can be a nested tree of conditions, so you can write
your own rule for what happens when you're replying to both your mom and
the CEO.

> Also note, this all will work great when *replying* to a message,
> but how about when composing a *new* message?

This Gnus doesn't provide out of the box, unless you compose from the
Group buffer with point on a group, and give a prefix arg to "m" or "a".
Then the group under point is used for rules.

But I know that there's more than one external package that does this,
one is called "gnus-pers", I think.






  reply	other threads:[~2019-11-11 17:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-11  1:48 bug#38169: Idea: custom From names ("From Personalities") 積丹尼 Dan Jacobson
2019-11-11 17:18 ` Eric Abrahamsen [this message]
2019-11-14  5:48   ` Lars Ingebrigtsen

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=87v9rq49ib.fsf@ericabrahamsen.net \
    --to=eric@ericabrahamsen.net \
    --cc=38169@debbugs.gnu.org \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.