From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Pankaj Jangid Newsgroups: gmane.emacs.help Subject: Re: Reply-To -> CC? Date: Sun, 20 Dec 2020 13:56:26 +0530 Organization: Code Is Great Foundation Message-ID: <87pn34narx.fsf@codeisgreat.org> References: <87pn352ogh.fsf@web.de> <87ft41dt3z.fsf@codeisgreat.org> <87k0tdqcl7.fsf@web.de> <87h7ohnj7y.fsf@codeisgreat.org> <878s9tqbo7.fsf@web.de> <87lfdtnemb.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28536"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Michael Heerdegen , help-gnu-emacs@gnu.org To: Eric Abrahamsen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 20 09:26:57 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kqu3N-0007IY-Ns for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 20 Dec 2020 09:26:57 +0100 Original-Received: from localhost ([::1]:54002 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kqu3M-00014i-Ou for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 20 Dec 2020 03:26:56 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60124) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kqu2z-00014c-Rw for help-gnu-emacs@gnu.org; Sun, 20 Dec 2020 03:26:33 -0500 Original-Received: from mail-pf1-x435.google.com ([2607:f8b0:4864:20::435]:39855) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kqu2y-00087c-99 for help-gnu-emacs@gnu.org; Sun, 20 Dec 2020 03:26:33 -0500 Original-Received: by mail-pf1-x435.google.com with SMTP id m6so4594627pfm.6 for ; Sun, 20 Dec 2020 00:26:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codeisgreat-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:organization:references:mail-followup-to:date :in-reply-to:message-id:user-agent:mime-version :content-transfer-encoding; bh=MQPiUlCKGmOVfr7vAhKb7HbvP0ol/6kBD+iWUEYro/E=; b=KLkzi1vjM1px65/F9IpNC6+vz0JGVZmZ67Zmouu3sM8Iwqxcm1sRgwSxAt/0EAxTKr EYy89N6NLjadI5xEe0V+rrv+dfyVlzcPlVIZpTpj7hv7CsGCq5pVcmaFq0E3woip+sd/ nk3yi8cdv2JByOyOKqLsmRu+9cgBFZNyCZjd5xAUMKaHpYIFbSEdz4lxbUOrB6g+K3w7 zUJemJbtM7isMFQCzPOSU2YXghIQIvk0MN2OzMhJWOPgS7wVfQNicHoC1rdoxZYENwJD lRwmR/ezzDmz4ws6g49PySn+/p+6bbOfSiJxEg0qfa4+hNOiN0V75kaVQKodiIdk5g09 iPIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:organization:references :mail-followup-to:date:in-reply-to:message-id:user-agent :mime-version:content-transfer-encoding; bh=MQPiUlCKGmOVfr7vAhKb7HbvP0ol/6kBD+iWUEYro/E=; b=AdKwtDr0+TUhkictUbHluhYUvtwWPGHLV4ZqELZ4Z2Z3/Aj0gX7BkIHiaK0X1uU3fm /yZNovvkuzrQGH0SDfRU60nfJWGfCV4rvwdellauhFgTeRVA+UztxYSUn4JBXs+BwM+o gw4z6OR2XxzBjIiaIWzIvOH834PlKCMrbLvQNzFLUWMo5ivYERnVy5BM7xTTg/ntuhSW 6H6N+1vSN4XGWaTMzLNMW4C0aV7gUZo2/TYmiH0Ou8/OUAmqs22unzGdQ2cnjCni0Lk8 3If0VTNY+tkG6hC7dHpGIxvXFOdyg2EEbZkUfhmbk5fQWE61zvkTzaXwGcxJQ4ogNy9k 85iw== X-Gm-Message-State: AOAM533UaOWiAM8rXHXV+7rPqPTHojn9PsDMswFpQPiPCsByh+gVVAm1 +sYw1RD29y604yazn3uvOyctxmURL2ThsQ== X-Google-Smtp-Source: ABdhPJyvhSRLeb2RQoQx//kClzOWi+X8238uLJtoGZkRrxBQZFvXG/pPcPlMOdgSWcYH9KkQWa/rjw== X-Received: by 2002:a62:8c97:0:b029:19e:56cc:b025 with SMTP id m145-20020a628c970000b029019e56ccb025mr10905290pfd.77.1608452789627; Sun, 20 Dec 2020 00:26:29 -0800 (PST) Original-Received: from lt ([2405:201:5c06:70bb:a64e:31ff:fe0c:338c]) by smtp.gmail.com with ESMTPSA id b1sm12119206pjh.54.2020.12.20.00.26.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Dec 2020 00:26:29 -0800 (PST) Mail-Followup-To: Eric Abrahamsen , Michael Heerdegen , help-gnu-emacs@gnu.org In-Reply-To: <87lfdtnemb.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Sat, 19 Dec 2020 23:03:24 -0800") Received-SPF: none client-ip=2607:f8b0:4864:20::435; envelope-from=pankaj@codeisgreat.com; helo=mail-pf1-x435.google.com X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:126641 Archived-At: Eric Abrahamsen writes: >>> >> This is possible with =E2=80=98Posting Styles=E2=80=99. Something li= ke this, >>> >> >>> >> (message-to-A-p ;; A function predicate=20 >>> >> (CC "B ")) >>> > >>> > 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 =E2=80=98match=E2=80=99. = If it=E2=80=99s a string, then Gnus will try to regexp match it against the group name. If it is the form =E2=80=98(header MATCH REGEXP)=E2=80=99, then Gnus will l= ook 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 =E2=80=98ma= tch=E2=80=99 is a function symbol, that function will be called with no arguments. If it=E2=80=99s a variable symbol, then the variable will be referenced. If it=E2=80=99s a list, then that list will be =E2=80=98eval=E2=80=99ed. In a= ny case, if this returns a non-=E2=80=98nil=E2=80=99 value, then the style is said to =E2=80= =9Cmatch=E2=80=9D. --8<---------------cut here---------------end--------------->8--- See =E2=80=9CIf the =E2=80=98match=E2=80=99 is a function symbol=E2=80=9D.