mhonarc-users

Re: PS: stricter parsing of "^From somebody(_at_)somewhere DATE" line ...

1999-07-05 12:39:28
So, the mailer inserted a '>' before the 'From' in the body of the message;
just thought to explain this, otherwise my previous message  doesn't make
much sense. Cheers,

Well, I was going to say that you should take a look at the <MSGSEP>
resource which sets a regular expression that must be matched to start
a new message.  There's information about it at

   http://www.oac.uci.edu/indiv/ehood/MHonArc/doc/resources/msgsep.html

As you can see, the default value is just '^From'.  I've found that
changing it to

<MsgSep>
^From \S+\s+\S+\s+\S+\s+\d+\s+\d+:\d+:\d+\s+\d+
</MsgSep>

is much more robust on my system. 

But...  You say that your MTA is adding '> ' before From lines in message
bodies, so I don't really understand how MHonArc can be picking it up
as a new message start.  Is the mail received on the same system?  
I guess it also depends on the method used to call mhonarc, too.  If
you're just piping into it via an alias, then it makes sense that it
wouldn't have the escaped From lines.

Anyhow, try the new MSGSEP definition.  And if escaped From lines
in message bodies is a problem to you, turn off the F=E flag for your
Mlocal definition in the sendmail.cf file (but be careful; this could
break local delivery if using /bin/mail or somesuch as your LDA).

Chris