procmail
[Top] [All Lists]

Re: Check for RFC822 Date

1999-11-09 17:50:15
Rejo Zenger <subs(_at_)sisterray(_dot_)xs4all(_dot_)nl> writes:
++ 09/11/99 10:43 -0800 - Mike de Laine:
You may also want to allow for trailing comments in dates such as:

Date: Tue, 09 Nov 1999 07:12:52 -0800 (PST) 

The recipe i use now [*$ ! ^Date:$ws($day,$ws)$date$ws$time] already
leaves that space at it does not specify what comes after $time (or what
is after the last part of $time).

I did not include it in the recipe as the RFC doesn't say anything about
that. It's not requested.

Well, since the rfc syntax doesn't show anything after the timezone,
nothing but CFWS (Comments/Folding WhiteSpace) is permitted.  Also, you
left out a $ws before the comma, and the question-mark to make the
parenthesised expression optional:

        *$ ! ^Date:$ws($day$ws,$ws)?$date$ws$time$ws$


Philip Guenther

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