From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/44317 Path: main.gmane.org!not-for-mail From: Harry Putnam Newsgroups: gmane.emacs.gnus.general Subject: Re: Forcing the sender address in Posting Styles Date: Fri, 19 Apr 2002 21:38:25 -0700 Organization: Still searching... 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: 8bit X-Trace: main.gmane.org 1019277592 17622 127.0.0.1 (20 Apr 2002 04:39:52 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 20 Apr 2002 04:39:52 +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 16ymfA-0004a7-00 for ; Sat, 20 Apr 2002 06:39:52 +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 16ymea-0008JT-00; Fri, 19 Apr 2002 23:39:16 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Fri, 19 Apr 2002 23:39:29 -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 XAA07199 for ; Fri, 19 Apr 2002 23:39:14 -0500 (CDT) Original-Received: (qmail 14947 invoked by alias); 20 Apr 2002 04:38:56 -0000 Original-Received: (qmail 14942 invoked from network); 20 Apr 2002 04:38:56 -0000 Original-Received: from 66-51-205-200.dslextreme.com (HELO mail.dslextreme.com) (66.51.205.200) by gnus.org with SMTP; 20 Apr 2002 04:38:56 -0000 Original-Received: from reader.local.lan (adsl-66.51.210.228.dslextreme.com [66.51.210.228]) by mail.dslextreme.com (8.12.2/8.12.2) with ESMTP id g3K4eQwM003124 for ; Fri, 19 Apr 2002 21:40:27 -0700 Original-Received: (from root@localhost) by reader.local.lan (8.11.6/8.11.6) id g3K4cR423961 for ding@gnus.org.PROCMAIL; Fri, 19 Apr 2002 21:38:27 -0700 Original-Received: (from reader@localhost) by reader.local.lan (8.11.6/8.11.6) id g3K4cQI23948; Fri, 19 Apr 2002 21:38:26 -0700 Original-To: ding@gnus.org Original-Newsgroups: gnu.emacs.gnus Original-Lines: 62 User-Agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.2 (i586-pc-linux-gnu) Cancel-Lock: sha1:ieGT+wPN8wuKv6Zqk9FSPHYK1Us= Posted-To: gnu.emacs.gnus Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:44317 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:44317 The following message is a courtesy copy of an article that has been posted to gnu.emacs.gnus as well. Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann) writes: > Harry Putnam writes: > >> (defun message-make-fqdn () >> "My hacked message-id." >> "reader.newsguy.com") > > You could do > > (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. > > Does that work? An odd thing happened with yours and Those's reply. Somehow they never showed up on my usual newsguy server. Someone else mentioned Kai's reply on ding so I tried a different server and found them. Kai, I think I see what your plan is there, after checking out C-h v gnus-newsgroup-variables But would I then have to set the other hacked msg id in all others? Also, it really wasn't clear what variable I would set hp-fqdn to. I don't see a variable like `message-id' amongst all those starting with message? those who know me have no need of my name writes: >>How can I stick the hack in there too? > > at a guess ... > > ((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"))) If I put this in the G p buffer and save, the last line gets converted to: ("Message-Id" (defun message-make-fqdn nil "My hacked message-id." "reader.jtan.com"))) The other variables get set in an outgoing post but not the message-id.