From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/44318 Path: main.gmane.org!not-for-mail From: prj@po.cwru.edu (Paul Jarc) Newsgroups: gmane.emacs.gnus.general Subject: Re: Forcing the sender address in Posting Styles Date: Sat, 20 Apr 2002 03:07:36 -0400 Organization: What did you have in mind? A short, blunt, human pyramid? Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1019286549 23839 127.0.0.1 (20 Apr 2002 07:09:09 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 20 Apr 2002 07:09:09 +0000 (UTC) Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16yozd-0006CO-00 for ; Sat, 20 Apr 2002 09:09:09 +0200 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 16yoyV-00007j-00; Sat, 20 Apr 2002 02:07:59 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sat, 20 Apr 2002 02:08:12 -0500 (CDT) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id CAA07717 for ; Sat, 20 Apr 2002 02:08:00 -0500 (CDT) Original-Received: (qmail 17052 invoked by alias); 20 Apr 2002 07:07:39 -0000 Original-Received: (qmail 17047 invoked from network); 20 Apr 2002 07:07:38 -0000 Original-Received: from multivac.student.cwru.edu (HELO multivac.cwru.edu) (qmailr@129.22.96.25) by gnus.org with SMTP; 20 Apr 2002 07:07:38 -0000 Original-Received: (qmail 28032 invoked by uid 500); 20 Apr 2002 07:07:59 -0000 Original-To: ding@gnus.org In-Reply-To: (Harry Putnam's message of "Fri, 19 Apr 2002 21:38:25 -0700") Mail-Copies-To: nobody Mail-Followup-To: ding@gnus.org Original-Lines: 50 User-Agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.2 (i686-pc-linux-gnu) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:44318 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:44318 Harry Putnam wrote: > Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Gro=DFjohann) writes: >> (defvar hp-fqdn "reader.newsguy.com") >> >> (defun message-make-fqdn () >> "My hacked msg id." >> hp-fqdn) >> >> Then you can set hp-fqdn as a local variable in some groups. I think >> you also have to (add-to-list 'hp-fqdn 'gnus-newsgroup-variables), >> but I'm not sure. > > But would I then have to set the other hacked msg id in all others? I don't think so. Making a local variable in group parameters makes the value buffer-local to the *Summary* buffer; adding it to gnus-newsgroup-variables means the *Summary* buffer-local value will also be used in *Article* and message buffers created from that *Summary*, and will also be buffer-local in those buffers. > Also, it really wasn't clear what variable I would set hp-fqdn to. Set it to "reader.newsguy.com" in defvar for the default, and then set it to "reader.dslextreme.com" in the group parameters for the group where you want to override it. > those who know me have no need of my name wr= ites: >> ((gcc-self . t) >> (posting-style >> (name "Harry Putnam") >> (address "reader@dslextreme.com")) >> ("Message-Id" (function-the-generates-a-dslextreme-id))) > > Is this close to what you are suggesting: > > ((gcc-self . t) > (posting-style > (name "Harry Putnam") > (address "Harry Putnam ")) > ("Message-Id" (defun message-make-fqdn () > "My hacked message-id." > "reader.dslextreme.com"))) TWKM was suggesting calling a function in that spot, not defining one. But I don't think this would work; IIRC, Message-ID gets erased and regenerated when a message is sent, and group parameters are ignored at that point. paul