procmail
[Top] [All Lists]

Et TO, procmail ?

1997-09-16 06:14:27
Quoting the manual,

          If the regular expression contains `^TO_' it will be substi-
          tuted by `(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope
          |Apparently(-Resent)?)-To):(.*[^-a-zA-Z0-9_.])?)', which
          should catch all destination specifications containing a
          specific address.

          If the regular expression contains `^TO' it will be  substi-
          tuted by `(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope
          |Apparently(-Resent)?)-To):(.*[^a-zA-Z])?)', which should
          catch all destination specifications containing a specific
          word.

I hear the above, but I cannot understand it. Could some kind soul out
there please explain the TO and TO_ regexp above in plain English?
Specifically,

1. How does it handle the real-name part of the TO address? This can
contain pretty much any garbage according to RFC822 as long as the address
is enclosed between <...> ?

2. How does it handle To:/Cc: lines split over multiple lines?

3. What is the essential difference (again, in plain English, please!)
between TO and TO_ ?

4. What in the world is (.*[^-a-zA-Z0-9_.])?   ?

Thanks a lot,
Vikas

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