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 28983 invoked from network); 25 Jan 2022 21:15:08 -0000 Received: from lists.gnu.org (209.51.188.17) by inbox.vuxu.org with ESMTPUTF8; 25 Jan 2022 21:15:07 -0000 Received: from localhost ([::1]:52916 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nCT9d-0003q2-He for ml@inbox.vuxu.org; Tue, 25 Jan 2022 16:15:05 -0500 Received: from eggs.gnu.org ([209.51.188.92]:45400) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nCT7m-0002ga-MO for info-gnus-english@gnu.org; Tue, 25 Jan 2022 16:13:10 -0500 Received: from ciao.gmane.io ([116.202.254.214]:45958) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nCT7k-00037L-Vz for info-gnus-english@gnu.org; Tue, 25 Jan 2022 16:13:10 -0500 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1nCT7i-0008N8-R3 for info-gnus-english@gnu.org; Tue, 25 Jan 2022 22:13:06 +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: Tue, 25 Jan 2022 13:13:00 -0800 Message-ID: <877danzfhf.fsf@ericabrahamsen.net> References: <87lez3bu7q.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:mjocRSrzJjnlibbyc41XnzuWuzo= 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: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.249, 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: > 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. > 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? Eric