From husc6!seismo!mcvax!ukc!einode!simon Sat Nov 22 08:45:49 EST 1986
Article 18 of comp.mail.uucp:
Path: husc6!seismo!mcvax!ukc!einode!simon
>From: simon@einode.UUCP (Simon Kenyon)
Newsgroups: comp.mail.uucp,comp.unix.wizards
Subject: Re: what rulesets are applied to what addresses?
Message-ID: <220@einode.UUCP>
Date: 20 Nov 86 16:29:24 GMT
References: <218@einode.UUCP>
Organization: The National Software Centre, Dublin, Ireland.
Lines: 37
Xref: husc6 comp.mail.uucp:18 comp.unix.wizards:143
Posted: Thu Nov 20 17:29:24 1986

to answer my own questions on sendmail (in case anybody is interested)

question:	what rulesets are applied to what addresses?
answer:
 
 	envelope from:		3,1,4,3,1,S,4
 	envelope to:		3,0,4     [4.2, sun2.0 and ultrix1.2 sendmails]
				3,0,2,R,4 [4.3 sendmail]
 	header from:		3,1,S,4
 	header to:		3,2,R,4

question:	who sets $g and $f?
answer:

	$g is result of -f command line parameter being passed through
	rulesets 3,1,4,3,1,S,4
	$f is result of -f command line parameter being passed through
	rulesets 3,1,4

question:	what part of the result of ruleset 0 gets passed through 4?
answer:

	only the username (that which will become $u) gets passed through
	ruleset 4 after going through 3 and then 0, $h does not get passed
	through ruleset 4 after 3 and 0 [this is obvious, once you know it,
	but it is not stated anywhere.

in case anyone is interested, i have a couple of things which go around
sendmail, which help YOU discover these sorts of facts for yourself.
if anyone is interested, i'll send it to you. it is much more realistic
than "address test mode".
-- 
Simon Kenyon
EUnet: simon@einode.UUCP
Smail: The National Software Centre, Dublin, IRELAND
Phone: +353-1-716255
EUnet is a registered trademark of the EUUG


From husc6!mit-eddie!rutgers!seismo!mcvax!ukc!einode!simon Wed Nov 26 17:30:55 EST 1986
Article 28 of comp.mail.uucp:
Path: husc6!mit-eddie!rutgers!seismo!mcvax!ukc!einode!simon
>From: simon@einode.UUCP (Simon Kenyon)
Newsgroups: comp.mail.uucp,comp.unix.wizards
Subject: Re: Re: what rulesets are applied to what addresses?
Message-ID: <223@einode.UUCP>
Date: 24 Nov 86 15:41:23 GMT
References: <220@einode.UUCP>
Organization: The National Software Centre, Dublin, Ireland.
Lines: 27
Xref: husc6 comp.mail.uucp:28 comp.unix.wizards:179
Posted: Mon Nov 24 16:41:23 1986

a slight followup to my previous postings :-(
whilst tricking around with rulesets i discovered another slight difference.
again it obvious when you know, but i didn't...

$q contains the default from: address
it is usually defined thus:

	Dq$g$?x	($x)$.

this would be something like

	From: joe@somesite (Joe Soap)

however $g goes through 3,1,4,3,1,S,4

so by the time the default address appears in the header
it has gone through

	3,1,4,3,1,S,4,3,1,S,4

anyone found an address that goes through more rulesets? :-)
-- 
Simon Kenyon
EUnet: simon@einode.UUCP
Smail: The National Software Centre, Dublin, IRELAND
Phone: +353-1-716255
EUnet is a registered trademark of the EUUG


