procmail
[Top] [All Lists]

Re: [Procmail] My list recipe is leaking!

1997-01-31 12:45:23
      Try replacing the "^TO" with "^(TO|CC)" as your original 
condition won't pick up what's in the CC header.

Unfortunately, that's not going to help matters...^TO is a "special" 
symbol in procmail.

If you check the procmailrc man page::

     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.

You'll see that not only does "^TO" catch the CC header, but it also 
catches most other common headers containing the destination address.

-- Lars

---
Lars Kellogg-Stedman * lars(_at_)bu(_dot_)edu * (617)353-8277
Office of Information Technology, Boston University

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