Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site watcgl.UUCP Path: utzoo!watmath!watcgl!dmmartindale From: dmmartindale@watcgl.UUCP (Dave Martindale) Newsgroups: net.news.b Subject: How should multiple Berknet addresses be stripped? Message-ID: <591@watcgl.UUCP> Date: Fri, 30-Nov-84 01:44:34 EST Article-I.D.: watcgl.591 Posted: Fri Nov 30 01:44:34 1984 Date-Received: Fri, 30-Nov-84 07:32:54 EST Distribution: net Organization: U of Waterloo, Ontario Lines: 22 How should the simplifying of Berknet addresses be done if the Path: header of a news article is being used as a mail return address? In funcs2.c, we find the code: #ifndef INTERNET /* * Play games stripping off multiple berknet * addresses (a!b!c:d:e => a!b!d:e) here. */ for (ptr=tbuf; *ptr; ptr++) if (index(NETCHRS, *ptr) && *ptr == ':' && (ptr2=index(ptr+1, ':'))) strcpy(ptr, ptr2); #endif !INTERNET The comment seems to imply that an address of the form a!b!c:d:e:f!g!h should be rewritten as a!b!e:f!g!h. Is this correct? The existing code would rewrite my example as a!b!c:e:f!g!h, which seems clearly wrong. And it will do even more interesting things with a!b!c:d!e:f. Dave Martindale