Bug and patch having to do with "From" lines

From: Bill Foote <Bill.Foote_at_Eng.Sun.COM_at_hypermail-project.org>
Date: Thu, 3 Sep 1998 16:18:14 -0700 (PDT)
Message-Id: <199809032318.QAA22007_at_doppio.eng.sun.com>

I had a e-mail message that looked like this:

>From an academic standpoint, I believe that. Indeed, conservative GC
makes no *guarantees*.
---- end ----

The line starting with "From " confused hypermail, even though I set the command-line argument that says that the entire file is one message. Here's a patch that fixes it. It's possible that the "if (readone) continue" could be taken out as well; I didn't want to think that hard :-)

Cheers, and thanks for the software,

--
Bill Foote                                  bill.foote_at_eng.sun.com
Real-Time Java VM Group, Sun Microsystems   http://java.sun.com/people/billf/


*** parse.c.old Thu Sep  3 16:09:12 1998
--- parse.c     Thu Sep  3 16:10:12 1998
***************
*** 1442,1448 ****
              }
          }
          else {
!             if (!strncmp(line, "From ", 5) && (oldline[0]=='\n')) {
                  if (readone)
                      continue;
                  if (strstr(oldline, "Forwarded message:")) {
--- 1442,1448 ----
              }
          }
          else {
!             if ((isinheader || !readone) && !strncmp(line, "From ", 5) && 
(oldline[0]=='\n')) {
                  if (readone)
                      continue;
                  if (strstr(oldline, "Forwarded message:")) {
Received on Fri 04 Sep 1998 03:52:57 PM GMT

This archive was generated by hypermail 2.3.0 : Sat 13 Mar 2010 03:46:11 AM GMT GMT