all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Pankaj Jangid <pankaj@codeisgreat.org>
To: Eric Abrahamsen <eric@ericabrahamsen.net>
Cc: Michael Heerdegen <michael_heerdegen@web.de>, help-gnu-emacs@gnu.org
Subject: Re: Reply-To -> CC?
Date: Sun, 20 Dec 2020 13:56:26 +0530	[thread overview]
Message-ID: <87pn34narx.fsf@codeisgreat.org> (raw)
In-Reply-To: <87lfdtnemb.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Sat, 19 Dec 2020 23:03:24 -0800")

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:

--8<---------------cut here---------------start------------->8---
   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”.
--8<---------------cut here---------------end--------------->8---

See “If the ‘match’ is a function symbol”.



  reply	other threads:[~2020-12-20  8:26 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 [this message]
2020-12-20 17:47             ` Eric Abrahamsen
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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87pn34narx.fsf@codeisgreat.org \
    --to=pankaj@codeisgreat.org \
    --cc=eric@ericabrahamsen.net \
    --cc=help-gnu-emacs@gnu.org \
    --cc=michael_heerdegen@web.de \
    /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.