procmail
[Top] [All Lists]

Re: Check for RFC822 Date

1999-11-07 17:24:30
On Mon, 8 Nov 1999, Rejo Zenger wrote:

So, it says clearly the year should exist as two digit (82) instead of
four digits (1982). However, all the emails i receive have a four digit
indication for the year. If the RFC has changed at this point, i would
be better of with this var for date?

RFC822, the source of your information, has been amended by RFC1123 as
the following excerpts show.

Network Working Group                    Internet Engineering Task Force
Request for Comments: 1123                             R. Braden, Editor
                                                            October 1989
 
    5.2.14  RFC-822 Date and Time Specification: RFC-822 Section 5
 
         The syntax for the date is hereby changed to:
 
            date = 1*2DIGIT month 2*4DIGIT
 
         All mail software SHOULD use 4-digit years in dates, to ease
         the transition to the next century.
 
         There is a strong trend towards the use of numeric timezone
         indicators, and implementations SHOULD use numeric timezones
         instead of timezone names.  However, all implementations MUST
         accept either notation.  If timezone names are used, they MUST
         be exactly as defined in RFC-822.
 
         The military time zones are specified incorrectly in RFC-822:
         they count the wrong way from UT (the signs are reversed).  As
         a result, military time zones in RFC-822 headers carry no
         information.

         Finally, note that there is a typo in the definition of "zone"
         in the syntax summary of appendix D; the correct definition
         occurs in Section 3 of RFC-822.

                                       Larry  Bezeau(_at_)UNB(_dot_)Ca

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