On Fri, 9 Dec 2022 20:39:34 -0600
Greg Marks <gtma...@gmail.com> wrote:

> I occasionally send e-mail from the command line via Postfix, using a
> script containing the command
> 
>    /usr/sbin/sendmail -oi -f <myaddress> -t <myaddress> < file
> 
> In a recent instance, the body of the e-mail contained a line
> beginning with the word "From"; the sendmail program prefixed the
> line with the character ">" and a space (evidently interpreting
> "From" as a header line that needed to be quoted).  This was more
> than just a trivial annoyance, since it rendered my digital signature
> on the e-mail invalid.
> 
> I think I encountered a similar problem a couple decades ago using the
> "mail" command on a FreeBSD machine, but I don't remember any solution
> to the problem.
> 
> Is there a way to tell the Postfix sendmail command not to alter any
> such lines in the body of the message?  (I'm afraid I wasn't able to
> discern an answer in the man page for sendmail or by searching the
> postfix.org site.)
> 
> Best regards,
> Greg Marks

You don't want to do this. Consider an MUA which stores your mail in
"mbox" format-- one email right after another in one file. The
delimiter is a line which starts at the left margin with the word
"From". For this to work, any other line which starts with "From" must
be "armored". And the way you do that is to precede it with "> ".

I don't know the RFCs involved, but I'm guessing they mandate or
suggest this treatment.

Paul

-- 
Paul M. Foster
Personal Blog: http://noferblatz.com
Company Site: http://quillandmouse.com
Software Projects: https://gitlab.com/paulmfoster

Reply via email to