Xref: utzoo comp.emacs:4538 news.software.nntp:92 Path: utzoo!attcan!uunet!lll-winken!lll-tis!ames!pasteur!agate!garnet!weemba From: weemba@garnet.berkeley.edu (Matthew P Wiener) Newsgroups: comp.emacs,news.software.nntp Subject: Re: Proper handling of "%" in Internet addresses. Message-ID: <16332@agate.BERKELEY.EDU> Date: 1 Nov 88 07:06:23 GMT References: <849@fxgrp.UUCP> Sender: usenet@agate.BERKELEY.EDU Reply-To: weemba@garnet.berkeley.edu (Matthew P Wiener) Followup-To: comp.emacs Organization: Brahms Gang Posting Central Lines: 22 In-reply-to: ljz%fxgrp.fx.com@ames.arc.nasa.gov (Lloyd Zusman) In article <849@fxgrp.UUCP>, ljz%fxgrp (Lloyd Zusman) writes: >This happens because the leading "@" is hard-coded in Gnews and in >Gnus. No provision for handling domain names with leading a "%" >or an embedded "@" exists in either of these pieces of software. First off, "Reply-To" is the field that ought to have the correct INTERNET mail address. "From" need not. For Gnews, try the following: (setq gnews-machine "%fxgrp.fx.com@ames.arc.nasa.gov" group-follow-hook 'fix-the-domain) (defun fix-the-domain () (save-excursion (goto-char 1) (if (re-search-forward "\\(From.*\\)@%" nil 0) (replace-match "\\1%")) (if (re-search-forward "\\(Reply-To.*\\)@%" nil 0) (replace-match "\\1%")))) ucbvax!garnet!weemba Matthew P Wiener/Brahms Gang/Berkeley CA 94720 "Nil sounds like a lot of kopins! I never got paid nil before!" --Groo