unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#38169: Idea: custom From names ("From Personalities")
@ 2019-11-11  1:48 積丹尼 Dan Jacobson
  2019-11-11 17:18 ` Eric Abrahamsen
  0 siblings, 1 reply; 3+ messages in thread
From: 積丹尼 Dan Jacobson @ 2019-11-11  1:48 UTC (permalink / raw)
  To: 38169

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.

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

OK when composing a new message, first insert the default From:,
and then when the user finally pushes the Send button, ask the user
''Mom detected. Use "Your loving son" From? [y, n, ?]''
and then give the user one final look to see if he is happy,
and then send the message.

(Users should note that their ISP might reject sending using any other
domain than the one they are paying for. However at least using Your
loving son instead of James Fartdom should never run aground.)





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#38169: Idea: custom From names ("From Personalities")
  2019-11-11  1:48 bug#38169: Idea: custom From names ("From Personalities") 積丹尼 Dan Jacobson
@ 2019-11-11 17:18 ` Eric Abrahamsen
  2019-11-14  5:48   ` Lars Ingebrigtsen
  0 siblings, 1 reply; 3+ messages in thread
From: Eric Abrahamsen @ 2019-11-11 17:18 UTC (permalink / raw)
  To: 38169

積丹尼 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.






^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#38169: Idea: custom From names ("From Personalities")
  2019-11-11 17:18 ` Eric Abrahamsen
@ 2019-11-14  5:48   ` Lars Ingebrigtsen
  0 siblings, 0 replies; 3+ messages in thread
From: Lars Ingebrigtsen @ 2019-11-14  5:48 UTC (permalink / raw)
  To: Eric Abrahamsen; +Cc: 38169

Eric Abrahamsen <eric@ericabrahamsen.net> writes:

> This much is already doable, with a clause in `gnus-posting-styles':
>
> ((header "From" "secretary@plaztziph.com")
>  (address "Chairman Fartdom <chair@plaztziph.com"))

Yup, so I'm closing this bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-11-14  5:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-11  1:48 bug#38169: Idea: custom From names ("From Personalities") 積丹尼 Dan Jacobson
2019-11-11 17:18 ` Eric Abrahamsen
2019-11-14  5:48   ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

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

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 read-only IMAP folder(s) and NNTP newsgroup(s).