Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!samsung!spool.mu.edu!uwm.edu!linac!mp.cs.niu.edu!ux1.cso.uiuc.edu!uxc.cso.uiuc.edu!paul From: paul@uxc.cso.uiuc.edu (Paul Pomes - UofIllinois CSO) Newsgroups: comp.mail.sendmail Subject: Re: Possible ucb mail bug? (address mangled) Message-ID: <1991Mar29.124656.16119@ux1.cso.uiuc.edu> Date: 29 Mar 91 12:46:56 GMT References: <14375@encore.Encore.COM> Sender: usenet@ux1.cso.uiuc.edu (News) Reply-To: Paul-Pomes@uiuc.edu Organization: University of Illinois at Urbana Lines: 91 dmildram@maxzilla.encore.com (Doug Mildram) writes: >I am seeing this behavior with /usr/ucb/mail, when the recipient is: > To: user and the sender is: > From: another@host.dom > >When user hits "r", he sees To: host.another@dom (truly mangled) [ Note: sources for /usr/ucb/Mail are on uunet.uu.net for those victims w.o. sources. -pbp ] Written 2:30 pm Jun 7, 1990 by paul@uxc.cso.uiuc.edu in uiuc.general Note title: Fix to Berkeley mail Subject: /usr/ucb/mail botches some return addresses Index: ucb 4.3BSD-tahoe Description: Given a message with a mix of relative and fully-qualified addresses, /usr/ucb/mail will apply parts of the fully-qualified domain name to the relative recipients. Repeat-By: Given a message like the following: From bscheid Wed Jun 6 16:13:06 1990 Date: Wed, 6 Jun 90 16:12:58 -0500 From: Beth Scheid To: krol Subject: TCP Product Cc: andys, bscheid, german (text deleted) Using the 'r' (reply) command creates the following: To: ux1.uiuc:krol@edu bscheid@ux1.cso.uiuc.edu Subject: TCP Product Cc: ux1.uiuc:andys@edu ux1.uiuc:bscheid@edu ux1.uiuc:german@edu Fix: The cause is that "." is being used as one of the address separators. My guess that this is a holdover from the BerkNet days. The fix is to eliminate "." from the list of separators in config.c. Apply the following patch and re-compile. Alternatively, patch the master ida/cf/Sendmail.mc file with the second patch below. *** /tmp/,RCSt1014232 Thu Jun 7 10:41:16 1990 --- config.c Thu Jun 7 10:38:50 1990 *************** *** 29,35 **** /* * Set of network separator characters. */ ! char *metanet = "!^:%@."; /* * Host table of "known" hosts. See the comment in configdefs.h; --- 29,35 ---- /* * Set of network separator characters. */ ! char *metanet = "!^:%@"; /* * Host table of "known" hosts. See the comment in configdefs.h; =====Alternate ida/cf/Sendmail.mc patch===== *** /tmp/,RCSt1007353 Thu Jul 12 13:12:05 1990 --- Sendmail.mc Thu Jul 12 13:11:34 1990 *************** *** 698,704 **** ######################################################################### S10 ! R<>,@$=w$=Y$+ <>,$3 Remove default host. R<$+>$*$=Y$~A$* $:<$1>$2$3?$4$5 Mark user portion. R<$+>$*!$+,$*?$+ <$1>$2!$3!$4?$5 ! is inferior to @ R<$+>$+,$*?$+ <$1>$2:$3?$4 Change src rte to % path --- 698,705 ---- ######################################################################### S10 ! # The next line commented out for now; usr/ucb/Mail is broken. ! #R<>,@$=w$=Y$+ <>,$3 Remove default host. R<$+>$*$=Y$~A$* $:<$1>$2$3?$4$5 Mark user portion. R<$+>$*!$+,$*?$+ <$1>$2!$3!$4?$5 ! is inferior to @ R<$+>$+,$*?$+ <$1>$2:$3?$4 Change src rte to % path -- Paul Pomes UUCP: {att,iuvax,uunet}!uiucuxc!paul Internet, BITNET: paul@uxc.cso.uiuc.edu US Mail: UofIllinois, CSO, 1304 W Springfield Ave, Urbana, IL 61801-2910