From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: help-gnu-emacs@gnu.org
Subject: Re: Reply-To -> CC?
Date: Sun, 20 Dec 2020 09:47:25 -0800 [thread overview]
Message-ID: <87im8w8j4i.fsf@ericabrahamsen.net> (raw)
In-Reply-To: 87pn34narx.fsf@codeisgreat.org
Pankaj Jangid <pankaj@codeisgreat.org> writes:
> Eric Abrahamsen <eric@ericabrahamsen.net> writes:
>
>>>> >> This is possible with ‘Posting Styles’. Something like this,
>>>> >>
>>>> >> (message-to-A-p ;; A function predicate
>>>> >> (CC "B <b@cc.org>"))
>>>> >
>>>> > Does this also work when composing a new mail, or only when replying?
>>>>
>>>> Yes. It should work with all the messages.
>>>
>>> And Gnus modifies the header silently before sending? Without
>>> additional setup?
>>
>> I don't think so: posting styles only work when replying to a message in
>> a particular group, or composing a new message "from" a group using "C-u
>> m" or "C-u a" while point is on that particular group.
>
> It works for a group if the fist element is a regexp. Quoting from the
> doc:
>
> The first element in each style is called the ‘match’. If it’s a
> string, then Gnus will try to regexp match it against the group name.
> If it is the form ‘(header MATCH REGEXP)’, then Gnus will look in the
> original article for a header whose name is MATCH and compare that
> REGEXP. MATCH and REGEXP are strings. (The original article is the one
> you are replying or following up to. If you are not composing a reply
> or a followup, then there is nothing to match against.) If the ‘match’
> is a function symbol, that function will be called with no arguments.
> If it’s a variable symbol, then the variable will be referenced. If
> it’s a list, then that list will be ‘eval’ed. In any case, if this
> returns a non-‘nil’ value, then the style is said to “match”.
>
> See “If the ‘match’ is a function symbol”.
Right, that's pretty much what I was saying.
next prev parent reply other threads:[~2020-12-20 17:47 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-20 2:36 Reply-To -> CC? Michael Heerdegen
2020-12-20 3:10 ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-12-20 4:00 ` Pankaj Jangid
2020-12-20 4:34 ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-12-20 5:20 ` Pankaj Jangid
2020-12-20 5:19 ` Michael Heerdegen
2020-12-20 5:23 ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-12-20 5:24 ` Pankaj Jangid
2020-12-20 5:38 ` Michael Heerdegen
2020-12-20 7:03 ` Eric Abrahamsen
2020-12-20 8:26 ` Pankaj Jangid
2020-12-20 17:47 ` Eric Abrahamsen [this message]
2020-12-21 3:53 ` Pankaj Jangid
2020-12-21 23:03 ` Eric Abrahamsen
2020-12-22 11:29 ` True
2020-12-22 17:13 ` Eric Abrahamsen
2020-12-20 4:49 ` Tim Landscheidt
2020-12-20 5:27 ` Michael Heerdegen
2020-12-23 3:47 ` Pankaj Jangid
2020-12-23 6:26 ` Jean Louis
2020-12-23 6:28 ` Jean Louis
2020-12-22 12:48 ` Gregor Zattler
2020-12-23 5:17 ` Michael Heerdegen
2020-12-23 5:54 ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-12-23 6:30 ` Jean Louis
2020-12-23 7:38 ` Michael Heerdegen
2020-12-23 8:13 ` Teemu Likonen
2020-12-23 10:43 ` Jean Louis
2020-12-23 11:11 ` Teemu Likonen
2020-12-23 11:49 ` Jean Louis
2020-12-23 12:14 ` Teemu Likonen
2020-12-23 12:32 ` Pankaj Jangid
2020-12-24 4:03 ` Michael Heerdegen
2020-12-23 10:18 ` Jean Louis
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87im8w8j4i.fsf@ericabrahamsen.net \
--to=eric@ericabrahamsen.net \
--cc=help-gnu-emacs@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 read-only IMAP folder(s) and NNTP newsgroup(s).