From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/5425 Path: news.gmane.org!not-for-mail From: Michael Slass Newsgroups: gmane.emacs.gnus.user Subject: Re: how do I modify headers in outgoing email/articles? Date: Thu, 21 Jul 2005 09:59:30 -0700 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1138671145 27360 80.91.229.2 (31 Jan 2006 01:32:25 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2006 01:32:25 +0000 (UTC) Original-X-From: nobody Tue Jan 17 17:35:16 2006 Original-Path: quimby.gnus.org!newsfeed1.e.nsc.no!news.powertech.no!news.banetele.no!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail Original-NNTP-Posting-Date: Thu, 21 Jul 2005 11:59:32 -0500 Original-Newsgroups: gnu.emacs.gnus User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:E2kk5MwuU+hdmKwDPK5D2W3iMS4= Original-NNTP-Posting-Host: 24.18.254.149 Original-X-Trace: sv3-yG2M9Uk80bCLKm0vQbRAlBkbj61XWbBtkVEhQkvy0cc0IeUcx+ss8j4zc72OYQDHniyHbqeP17+Qc0P!EL2k/iFJLC85XPuedI2q+juzsx15eH+9MQmQstS303ZAhGpncQwb+k5HcBYbnex6Gg== Original-X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Original-Xref: bridgekeeper.physik.uni-ulm.de gnus-emacs-gnus:5567 Original-Lines: 44 X-Gnus-Article-Number: 5567 Tue Jan 17 17:35:16 2006 Xref: news.gmane.org gmane.emacs.gnus.user:5425 Archived-At: Sébastien Kirche writes: >At 17:07 on Jul 21 2005, Michael Slass said : > >> What variable(s) can I frob so that my outgoing emails will appear to >> originate from miknrene@drizzle.com instead of from my home machine? > >C-h v user-mail-address RET should help. > >-- >Sébastien Kirche Yeah, you'd think that, but it doesn't help the message-id. As it turns out, the function `message-make-fqdn' gives priority to the hostname of the machine over the domain name in your `user-mail-address', so setting the latter doesn't help in the composition of the message-id. I wrote this advice to change that, and now my message ids get the domain name from `user-mail-address' (defadvice message-make-fqdn (around message-make-fqdn-around) "Give higher priority to domain from `message-user-mail-address'" (let* ((user-mail (message-user-mail-address)) (user-domain (if (and user-mail (string-match "@\\(.*\\)\\'" user-mail)) (match-string 1 user-mail)))) (setq ad-return-value (if (and user-domain (stringp user-domain) (string-match message-valid-fqdn-regexp user-domain) (not (string-match message-bogus-system-names user-domain))) user-domain (progn ad-do-it ad-return-value))))) I'm still not sure whether I need to try to modify the code which performs the SMTP transaction so that my computer will present itself as the machine receiving the ssh connection, rather than as my bogus machine name. -- Mike Slass