Isn't this because of the flags on the Mprog mailer that says to output a
"From_" line, which on entry to another sendmail process forces sendmail to
insert a blank line in front of the headers it didn't see?  If so, this is
why tail+2 is needed, and why wrapper (majordomo, really) doesn't... it
spawns sendmail and submits ONLY headers down the pipe.

I use procmail's formail -s instead of tail+2, myself, since it works no
matter what the flags are for the Mprog mailer entry (if using sendmail) or
with smail, or local.mail, and so on.

Andy


-----Original Message-----
From:   [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Mitch Collinsworth
Sent:   Thursday, March 25, 1999 11:22 AM
To:     Ronald F. Guilmette
Cc:     [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject:        Re: sendmail -f


>>Anybody here know how to get 8.9.1 to do the right thing?
>
>Try this alias instead.  It might work.  I think it will.
>
>foo:   "|/usr/bin/tail +2 | /usr/sbin/sendmail -oi -fowner-foo foo-out"

Ok, remarkably enough this does work, which means the blank line
is getting prepended to the message _before_ it is passed to the
command in the alias.

Surely there's a way to prevent the blank line from happening in the
first place.  I find it hard to believe that everyone running a recent
version of sendmail is adding tail +2 to all their list aliases.
Or do programs like majordomo's 'wrapper' check for this and do it
if needed?

-Mitch

Reply via email to