Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: info-gnus-english@gnu.org
Subject: Re: Replying with a specified posting style
Date: Wed, 26 Jan 2022 10:46:04 -0800	[thread overview]
Message-ID: <87lez2xrmb.fsf@ericabrahamsen.net> (raw)
In-Reply-To: <874k5qc369.fsf@eps142.cdf.udc.es>

Alberto Luaces <aluaces@udc.es> writes:


[...]

>> The "match" part of the posting style can be more complicated than a
>> simple string match on group name. If you need to match on both "From"
>> header and group name, I think the simplest thing might be to use your
>> own function that checks those two things (the function is called with
>> point in the message that you're replying to), and then sets the From
>> and GCC and maybe SMTP server appropriately.
>>
>> Does that make sense?
>
> Yes, it does.  My use case is not generalist, since I do not have any
> rules that I can write beforehand, but from time to time someone
> addresses me at the wrong email identity.

Ah, well posting styles are by definition automatic rules, so that's
probably not the right solution here.

> I was somehow looking for a function that could set up those fields you
> mentioned in the reply process, but if it is not straightforward, I am
> sticking with my procedure: move the message to the group it should
> belong, and then benefit from its posting style when replying.

I think you might look into one of the packages that do "identity" in
Gnus -- see https://www.emacswiki.org/emacs/CategoryGnus#h5o-5



      reply	other threads:[~2022-01-26 18:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-25 17:28 Alberto Luaces
2022-01-25 21:13 ` Eric Abrahamsen
2022-01-26  8:27   ` Alberto Luaces
2022-01-26 18:46     ` Eric Abrahamsen [this message]

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=87lez2xrmb.fsf@ericabrahamsen.net \
    --to=eric@ericabrahamsen.net \
    --cc=info-gnus-english@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.
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).