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 15935 invoked from network); 26 Jan 2022 08:27:43 -0000 Received: from lists.gnu.org (209.51.188.17) by inbox.vuxu.org with ESMTPUTF8; 26 Jan 2022 08:27:43 -0000 Received: from localhost ([::1]:56724 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nCdeX-0006BT-6x for ml@inbox.vuxu.org; Wed, 26 Jan 2022 03:27:41 -0500 Received: from eggs.gnu.org ([209.51.188.92]:49456) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nCdeT-00068i-GA for info-gnus-english@gnu.org; Wed, 26 Jan 2022 03:27:37 -0500 Received: from ciao.gmane.io ([116.202.254.214]:44314) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nCdeR-0000bP-Nx for info-gnus-english@gnu.org; Wed, 26 Jan 2022 03:27:37 -0500 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1nCdeQ-0004cc-8p for info-gnus-english@gnu.org; Wed, 26 Jan 2022 09:27:34 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: info-gnus-english@gnu.org From: Alberto Luaces Subject: Re: Replying with a specified posting style Date: Wed, 26 Jan 2022 09:27:26 +0100 Message-ID: <874k5qc369.fsf@eps142.cdf.udc.es> References: <87lez3bu7q.fsf@eps142.cdf.udc.es> <877danzfhf.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) Cancel-Lock: sha1:N4BV3WCb/B2W8z9pMMl9PspRQpE= 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" Eric Abrahamsen writes: > Alberto Luaces writes: > >> Hi, this smells like a FAQ, but I couldn't find anything about it: >> >> Sometimes I receive messages to my account A, while I want to reply to >> them from my account in server B. >> >> As far as I know, posting styles are only selected when composing new >> messages. > > No, posting styles are in effect based on replies/followups as well. In > fact, I think the only time they *aren't* in effect is when composing > new messages, unless you call a message composition command with a > prefix arg, in which case the group under point is used. > You are right, otherwise my solution would not work. > >> As a low-tech solution, I just move the message from A to B's INBOX and >> reply from there. >> >> Is there a more elegant solution? > > 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. 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. Thank you very much for the heads-up. -- Alberto