[comp.mail.uucp] what rulesets are applied to what addresses?

simon@einode.UUCP (Simon Kenyon) (11/18/86)

could somebody please enlighten me as to EXACTLY which rulesets are
applied to which addresses as they pass through sendmail
(in particular the version of sendmail which calls itself 5.43)
it used to be (i think):

	envelope from:		3,1,4
	envelope to:		3,0,4
	header from:		3,1,S,4
	header to:		3,2,R,4

it appears to be different in 5.43
i need to know if sendmail puts certain addresses through the rulesets twice!

WISH: it would be nice if "envelope from:" addresses were put through a mailer
specific rule, like "header from:" addresses. that way, it would be possible
to get "from: lines" right!

who sets $g and $f?
i get lost in the code
as for the hack with UGLYUUCP...

also, what part of the result of ruleset 0 gets passed through 4?
-- 
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

simon@einode.UUCP (Simon Kenyon) (11/20/86)

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

simon@einode.UUCP (Simon Kenyon) (11/24/86)

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