procmail
[Top] [All Lists]

Re: Some date checking code.

2003-05-14 16:32:52
On Wed, May 14, 2003 at 03:49:00PM -0600, Daryle A. Tilroe wrote:

Dallman Ross wrote:
They are, unfortunately, legit.  See RFC2822.

Well according to an April 2001 copy I just read they are obsolete.

"Obsolete," or deprecated, yes.  Illegitimate, no.  There is a
difference!

Of course I just got my first false positive that had 'MDT' only :-).
Anyhow as I read it this should be the final solution (yeah right
:-):

:0 H
* !^Date.*+1300( |$)
* !^Date.*(([+-](1[12]|0?[0-9])[03]0)|([PMCEA][DS]|GM|U)T|UTC)( |$)

We have been trying to tell you: If you leave the `H' in, the
known procmail bug will come back and bite you!  Later you will
have, or one day develop, a recipe with `B', and you'll wonder
why it doesn't work right and also contains the headers.

Also, I don't know why you don't keep the anchoring colon after
^Date.  You might get a bad hit one day, without it, on something
like "Date-Munge-Notification:" or some such nonsense.

{
  :0 H
  * $ ${WEIGHT}^0
  * 12^0
  { }
  WEIGHT="$="
  LOG="Weight adjusted for phoney timezone: $WEIGHT $NL"

Uh, it's spelled "phony."

-- 
dman

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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