[net.news.b] How should multiple Berknet addresses be stripped?

dmmartindale@watcgl.UUCP (Dave Martindale) (11/30/84)

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