[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Reply-To -> CC?
From: |
Eric Abrahamsen |
Subject: |
Re: Reply-To -> CC? |
Date: |
Sun, 20 Dec 2020 09:47:25 -0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
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.
- Reply-To -> CC?, Michael Heerdegen, 2020/12/19
- Re: Reply-To -> CC?, Emanuel Berg, 2020/12/19
- Re: Reply-To -> CC?, Pankaj Jangid, 2020/12/19
- Re: Reply-To -> CC?, Emanuel Berg, 2020/12/19
- Re: Reply-To -> CC?, Michael Heerdegen, 2020/12/20
- Re: Reply-To -> CC?, Pankaj Jangid, 2020/12/20
- Re: Reply-To -> CC?, Michael Heerdegen, 2020/12/20
- Re: Reply-To -> CC?, Eric Abrahamsen, 2020/12/20
- Re: Reply-To -> CC?, Pankaj Jangid, 2020/12/20
- Re: Reply-To -> CC?,
Eric Abrahamsen <=
- Re: Reply-To -> CC?, Pankaj Jangid, 2020/12/20
- Re: Reply-To -> CC?, Eric Abrahamsen, 2020/12/21
- Re: Reply-To -> CC?, True, 2020/12/22
- Re: Reply-To -> CC?, Eric Abrahamsen, 2020/12/22
- Re: Reply-To -> CC?, Emanuel Berg, 2020/12/20
Re: Reply-To -> CC?, Tim Landscheidt, 2020/12/19