mhonarc-users

bogus "received" headers crashing mhonarc

1996-03-27 21:56:04
Dear mhonarc list:

I seem to be having problems with MH folders containing "Received:" headers
of a form similar to:

    Received: by aquila; id AA03750; Thu, 23 Dec 1993 10:40:12 -0500

When mhonarc attempts to parse the header, timelocal.pl dies with a message
that the month isn't in the range of 1..31. At this point, mhonarc dies, and
the remainder of the folder is left unprocessed. This appears due to the
fact that RFC822 specifies the Received header have a single ";" in the
body of the header, and that semicolon should separate the route from the
date-time. Thus, the above header should be:

     Received: by aquila id AA03750; Thu, 23 Dec 1993 10:40:12 -0500

My questions are as follows:

1) Has anyone else seen this behavior?

2) Does anyone have any work-arounds in place already?

3) Is this behavior of sendmail prevalant (i.e. have I missed something in
the RFC's?). Our sendmail rewrite rules are apparently generating this form
on a number of systems on campus. This seems to be direct from the
vendor (sigh).

I can think of a number of work-arounds, all of which involve modifying
mhonarc in some way, such as eval'ing timelocal, changeing the parse
of either the Received headers or date in routine read_mail_header. If someone
else has already done this and is willing to share, i'd appreciate it.

Thanks,
-- Frank


++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Frank J. Manion
Director, Research Computing Services
The Fox Chase Cancer Center                              Phone: 215-728-3660
7701 Burholme Avenue                                     FAX:   215-728-2513
Philadelphia, PA, USA   19111                   internet: 
FJ_Manion(_at_)fccc(_dot_)edu

  "Everything should be made as simple as possible, but no simpler."
           - A. Einstein -
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

<Prev in Thread] Current Thread [Next in Thread>