Subject: Re: ?: Pine + Sun Mailtool + Content-Length

From: [email-masked] (Jim Davis)
Date: 5 Dec 1994 10:45:49 -0700

In article <[email-masked]>,
Jaakko Salminen - Sun Finland <[email-masked]> wrote:

:I'll put E in the mailer flags in sendmail.cf, it should do the trick.

Yup.  Here's how the 'E' flag works with the Solaris /bin/mail
program.  It's the default local delivery agent, and when the 'E' flag
is not used...

flyer; egrep '^Mlocal' /etc/mail/sendmail.cf
Mlocal,         P=/bin/mail, F=lsDFMfSn, S=10, R=20/40,
flyer; echo 'From me to you' | mailx -s test1 jdavis
flyer; cat /var/mail/jdavis
 [...]
 Content-Length:15

 From me to you

...the 'From' is not escaped.  Now if I add the 'E' flag,

flyer; egrep '^Mlocal' /etc/mail/sendmail.cf
Mlocal,         P=/bin/mail, F=lsDFMfSnE, S=10, R=20/40,
                                       ^

flyer; echo 'From me to you' | mailx -s test2 jdavis
flyer; cat /var/mail/jdavis
 [...]
 Content-Length: 16

 >From me to you

then /bin/mail escapes the 'From' _and_ recalculates the
'Content-Length' header.  So programs that look for 'From' should work
as well as programs that look for the Content-Length header.

---

From: Mark Crispin <[email-masked]>
Date: Mon, 5 Dec 1994 18:24:39 -0800

Our sendit tool is smart enough not to escape ``From me to you'' lines; 
it does a syntax check and only escapes those lines that Pine would 
consider to be mail delimiter lines.

Best of both worlds!

-- Mark --