From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/81596 Path: news.gmane.org!not-for-mail From: Angel de Vicente Newsgroups: gmane.emacs.gnus.general Subject: Re: Something like gnus-posting-styles for new mails? Date: Wed, 14 Mar 2012 16:25:40 +0000 Message-ID: References: <87r4wv42es.fsf@thinkpad.tsdh.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1331742391 4347 80.91.229.3 (14 Mar 2012 16:26:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 14 Mar 2012 16:26:31 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M29876@lists.math.uh.edu Wed Mar 14 17:26:28 2012 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1S7r1v-000158-6c for ding-account@gmane.org; Wed, 14 Mar 2012 17:26:27 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1S7r1X-00055D-Az; Wed, 14 Mar 2012 11:26:03 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1S7r1V-000551-Ko for ding@lists.math.uh.edu; Wed, 14 Mar 2012 11:26:01 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1S7r1U-0000vT-13 for ding@lists.math.uh.edu; Wed, 14 Mar 2012 11:26:01 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1S7r1S-0002hW-Jp for ding@gnus.org; Wed, 14 Mar 2012 17:25:58 +0100 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1S7r1Q-0000iv-IL for ding@gnus.org; Wed, 14 Mar 2012 17:25:56 +0100 Original-Received: from carro.ll.iac.es ([161.72.206.5]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 14 Mar 2012 17:25:56 +0100 Original-Received: from angelv by carro.ll.iac.es with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 14 Mar 2012 17:25:56 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 50 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: carro.ll.iac.es User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) Cancel-Lock: sha1:bBTGg3uGjd773nK96f2V1NBiiCs= X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:81596 Archived-At: Hi, Greg Troxel writes: > Angel de Vicente writes: > >> Hi, >> >> Tassilo Horn writes: >>>> I have modified gnus-posting-styles so that I will use an alternative >>>> mail address when replying to a certain mailing list and it works >>>> fine, but I would like that when I compose a new mail to that list the >>>> From header is also "automagically" modified to that alternative mail >>>> address. I didn't find anything obvious in the gnus-posting-styles >>>> section in the manual (or surroundings). Is there an easy way to >>>> acomplish that? >>> >>> Simply set point on the group whose posting style you want to use, and >>> then hit `C-u m' instead of only `m'. Or hit `C-u 1 m', and Gnus will >>> query you for the group whose posting style you want to use. >> >> This is for a mailing list, not a newsgroup. I get the mails through my >> regular IMAP mail, and when replying the From address is changed OK, >> thanks to the following rule in my gnus-posting-styles >> >> ((header "to" ".*visit-users.*") (address "angel.....@gmail.com")) >> >> So I don't think your idea would work? In any case, even for a post to a >> newsgroup, I don't seem go get the headers modified if I use C-u m or >> C-u 1 m > > I read lists in IMAP, with them pre-filtered into IMAP folders. So they > are also 'groups' in gnus. Ah, OK, I see. With a rule like (".*VisIt" (address "angel.......@gmail.com")) then C-u 1 m or C-u m work as explained, but I was hoping for a way of firing this rule when I start a new message (command 'm') from anywhere in my group buffer, after completion of the line To: includes something like .*visit-users.* (or just starting a mail from within BBDB (command 'm'), which I regularly use for composing mails). Any ideas? Thanks, -- Ángel de Vicente http://angel-de-vicente.blogspot.com/