From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 9211 invoked from network); 26 Jan 2022 18:56:13 -0000 Received: from lists.gnu.org (209.51.188.17) by inbox.vuxu.org with ESMTPUTF8; 26 Jan 2022 18:56:13 -0000 Received: from localhost ([::1]:53308 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nCnSk-0002cO-Bs for ml@inbox.vuxu.org; Wed, 26 Jan 2022 13:56:11 -0500 Received: from eggs.gnu.org ([209.51.188.92]:34504) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nCnJD-0007jl-3D for info-gnus-english@gnu.org; Wed, 26 Jan 2022 13:46:22 -0500 Received: from ciao.gmane.io ([116.202.254.214]:37390) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nCnJA-0008Ni-PR for info-gnus-english@gnu.org; Wed, 26 Jan 2022 13:46:18 -0500 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1nCnJ5-0007va-5L for info-gnus-english@gnu.org; Wed, 26 Jan 2022 19:46:11 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: info-gnus-english@gnu.org From: Eric Abrahamsen Subject: Re: Replying with a specified posting style Date: Wed, 26 Jan 2022 10:46:04 -0800 Message-ID: <87lez2xrmb.fsf@ericabrahamsen.net> References: <87lez3bu7q.fsf@eps142.cdf.udc.es> <877danzfhf.fsf@ericabrahamsen.net> <874k5qc369.fsf@eps142.cdf.udc.es> Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cancel-Lock: sha1:iBm9t/JQaKE8TK1UHzReHfT22Z0= Received-SPF: pass client-ip=116.202.254.214; envelope-from=gegu-info-gnus-english@m.gmane-mx.org; helo=ciao.gmane.io 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, HEADER_FROM_DIFFERENT_DOMAINS=0.25, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: info-gnus-english-bounces+ml=inbox.vuxu.org@gnu.org Sender: "info-gnus-english" Alberto Luaces 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