From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/44972 Path: main.gmane.org!not-for-mail From: Barry Fishman Newsgroups: gmane.emacs.gnus.general Subject: Re: Who sets Sender:? Date: Sun, 26 May 2002 13:17:22 -0400 Organization: Home System Sender: owner-ding@hpc.uh.edu Message-ID: References: <87bsbak1ws.fsf@nwalsh.com> <02May20.171937edt.119286@gateway.intersystems.com> <873cwld3aw.fsf@nwalsh.com> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1022433493 9174 127.0.0.1 (26 May 2002 17:18:13 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 26 May 2002 17:18:13 +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 17C1em-0002Nk-00 for ; Sun, 26 May 2002 19:18:12 +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 17C1eW-0006Xa-00; Sun, 26 May 2002 12:17:56 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sun, 26 May 2002 12:18:11 -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 MAA07917 for ; Sun, 26 May 2002 12:17:56 -0500 (CDT) Original-Received: (qmail 13156 invoked by alias); 26 May 2002 17:17:35 -0000 Original-Received: (qmail 13151 invoked from network); 26 May 2002 17:17:35 -0000 Original-Received: from quimby.gnus.org (80.91.224.244) by gnus.org with SMTP; 26 May 2002 17:17:35 -0000 Original-Received: from news by quimby.gnus.org with local (Exim 3.12 #1 (Debian)) id 17C1uQ-0005z2-00 for ; Sun, 26 May 2002 19:34:22 +0200 Original-To: ding@gnus.org Original-Path: not-for-mail Original-Newsgroups: gnus.ding Original-Lines: 79 Original-NNTP-Posting-Host: 12.78.18.149 Original-X-Trace: quimby.gnus.org 1022434462 23003 12.78.18.149 (26 May 2002 17:34:22 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: 26 May 2002 17:34:22 GMT X-Face: ,b"GM7)/AGw6p$#|B#Rk'k,tEyoUap#?/bbfxLu<.uA(VNR9mfm&hF~hX6C24G=\|>E>y[5 FSZx)~.YQn,Je23!f:'_)Jo{#1>atqPQJC writes: > Barry Fishman writes: >> The approach I take is probably a bit convolved but begins by >> giving my system a unique name which should be at least traceable >> by humans: >> >> (setq mail-host-address "barry_fishman.att.net") > > What does gnus do with this information? First: When I post news or send mail through my ISP, my identity is really linked to the ISP, and has nothing to do with the machine on which I am actually running emacs. My mailbox is really barry_fishman@att.net, and that is the only unique ID I have. Mail I send out goes through AT&T's server. Where I happen to be at the moment (and for that matter my login name) is irrelevant, since (to use software terminology) it exist in a separate private namespace. What I wanted to do is to synthesize a virtual host name that was at least more meaningful, and then convince emacs mail and gnus to use that. Ideally it would be unique, so I just applied the (probably obsolete) technique of replacing the at (@) in my address with a dot (.). I set mail-host-address since that is the most primitive level mail host name variable I could find, and that is were message-make-fqdn get its address when it knows the system-name is bogus. > >> Which is my ISP username grafted into its network domain. >> I then convince the message package to use it, and not send any >> sender field: >> >> (setq gnus-local-domain "att.net") My mail domain is "att.net". If I had a real DNS address this would still be true. >> ;; I don't really have valid FQDN information so clean up header >> (setq message-syntax-checks '((sender . disabled))) > > with this done, what fields are effected by your other settings? It it used in message-generate-headers to generate the message-id. > >> ;; Makes sure (message-make-fqdn) uses mail-host-address when we >> ;; are on the .local network. >> (setq message-bogus-system-names "^localhost\\.\\|\\.local$") > > What is the advantage of this? This is needed to keep message-make-fqdn from using my system-name > > With sender disabled, is the only field being effected the rhs of > message id? > > Does this accomplish the same things: > > (defun message-make-fqdn () > "My hacked message-id." > "reader.newsguy.com") Yes, but in order to change a function in message I would have to load it first, and the indirect approach seemed cleaner and more in keeping with what seemed to be the author's intent. Until this indirect way was added to message, I used an advice, just as I still do with smtp-mail. Although you didn't ask, I changed smtpmail-fdqn, to fix a problem created by my changes. I suspect the cause was that ATT would see a message-id that didn't match my HELO greeting and think I was forwarding mail through them. -- Barry