[net.mail] Sendmail questions

pedz@smu.UUCP (10/27/84)

I have some (more) questions that I would appreciate some answered about
sendmail which the documentation leaves unanswered.

First: When do macros get expanded?  For example, if a macro contains
a reference to a second macro, when does the second macro get expanded?
Does the second macro get expanded when the surrounding macro is defined
or when it is used?

Second: What goes through the rewrite rules and when?  What parts of
the header (and message) go through the rules and which order is used.
I am familar with the picture of the various predefined rule sets and
which ones go to each other.  What I am confused about mostly is what
parts of the header go through which rules.

Third:  I think it would be useful to be able to get the message (or
simply the header) written out to a dummy mailer so that I could see
everything that has been done to it.  I am familar with the debug
options and the ability to give it rules and watch it munch on them
but that is not the same thing as seeing the whole message after it
has been munged on.

I would appreciate any help that you can give me.  I will post the
results to this notes file so there is no need requesting the info.

Perry
convex!smu!pedz