procmail
[Top] [All Lists]

Re: Check for RFC822 Date

1999-11-07 23:48:01
++ 07/11/99 23:55 -0600 - Philip Guenther:
Go read section 3.4.7 again:

Again... hehehe. I knew i overlooked a thing. Thank you.

I posted two additional questions, but it seems they did not make it to
the list. When checking the recipe against the mails in my inbox i saw
two differences.

One of them concerns the year in date. I have followed the RFC by having
this variable:

  date       = "$digit?$digit$ws$month$ws$digit$digit"

So, this means a date like "20 Jan 88" would be a valid date. It is, i
think, what the RFC reuires:

    date        =  1*2DIGIT month 2DIGIT        ; day month year
                                                ;  e.g. 20 Jun 82

However, this doesn't match the Date field in any of the messages i have
in my inbox. They're all "20 Jan 1988" instead. So i have changed the
variable to:

  date       = "$digit?$digit$ws$month$ws(19|20)?$digit$digit"

Where (19|20) should be $digit$digit, but if it would be anything but 19
or 20 it would be way to far away... :-)

Any idea's? Did this change over the time? Or did i mis a thing.

        -Rejo.

-- 
= Rejo Zenger  [Sister Ray Crisiscentrum]               
rejo(_at_)sisterray(_dot_)xs4all(_dot_)nl
= http://mediaport.org/~sister                                  PGP: see headers
--------------------------------------------------------------------------------

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