Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.1 6/24/83; site yale.UUCP
Path: utzoo!watmath!clyde!burl!ulysses!mhuxl!houxm!houxz!vax135!cornell!uw-beaver!tektronix!hplabs!zehntel!dual!amd!decwrl!decvax!yale!dglasser
From: dglasser@yale.UUCP (Dan Glasser)
Newsgroups: net.bugs,net.bugs.4bsd
Subject: Sendmail problem: UUCP headers
Message-ID: <4598@yale.UUCP>
Date: Wed, 8-Aug-84 22:35:47 EDT
Article-I.D.: yale.4598
Posted: Wed Aug  8 22:35:47 1984
Date-Received: Sat, 11-Aug-84 06:39:59 EDT
Organization: Yale University CS Dept., New Haven CT
Lines: 46


    I'm having a problem getting sendmail to properly rewrite headers
on messages going out to UUCP.  Let's say that I compose a message
with the following header fields:

	From: dglasser
	To: decvax!foo, apollo!bar
	Cc: decvax!harpo!blah

    The copy of the message spooled for decvax!foo and decvax!harpo!blah
should have the headers rewritten as follows:

	From: yale!dglasser
	To: foo, yale!apollo!bar
	Cc: harpo!blah

    The copy of the message spooled for apollo!bar should have the
headers rewritten as follows:

	From: yale!dglasser
	To: yale!decvax!foo, bar
	Cc: yale!decvax!harpo!blah

    In other words, what we want to do is the following:

	1) Prepend "yale!" to the sender address.
	2) For recipient address a!b!c:
	   a) For copies of the message going to a, strip "a!"
	   b) For copies of the message NOT going to a, prepend "yale!".


    Now, I have two important questions:

    1) Is my description of how the headers should be rewritten correct?
       (I think it is, but I'd be interested to hear disagreements)
    2) Has anyone successfully implemented this sort of rewriting in
       sendmail?  (I tried doing it by using the $h macro in the UUCP
       recipient rewriting ruleset, but it didn't work)


					Danny Glasser

					decvax!yale!dglasser
					(formerly yale-comix!dglasser)

					Glasser-Daniel@YALE.ARPA