procmail
[Top] [All Lists]

Re: Check for RFC822 Date

1999-11-07 23:08:52
Rejo Zenger <subs(_at_)sisterray(_dot_)xs4all(_dot_)nl> writes:
...
I also have a two additional questions:
- First, can i make this recipe case sensitive. When building the vars i
 have copied the case of each of the values, but i'm not sure if case
 matters here.

Go read section 3.4.7 again:

        ... The only syntactic units which requires preservation of case
        information are:

                    -  text
                    -  qtext
                    -  dtext
                    -  ctext
                    -  quoted-pair
                    -  local-part, except "Postmaster"

        When matching any other syntactic unit, case is to be ignored.
        For  example, the field-names "From", "FROM", "from", and even
        "FroM" are semantically equal and should all be treated ident-
        ically.


- Second, all those whitespaces, can they replaced by this variable that
 is used in the Message-ID check by Philip? This was that var:
      ws         = "[  ]*(\([^()]*\)[  ]*)?"


Yep.


Philip Guenther

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