procmail
[Top] [All Lists]

Re: Boolean usage

1996-03-21 03:42:48
On Wed, 20 Mar 1996, Philip Guenther wrote:

For something like this, you don't need to 'or' conditions, you just
need an 'or' in the regular expression:

* ^(To|Cc):(_dot_)*alias1(_at_)site

        Thank you, this hint was what I was looking after!

...however this particular sort of match is so common that there's a
shorthand for it:

* ^TO_alias1(_at_)site

        ??? I see that "_" used for 1st time...this site is using version 
        2.92pre7. Gotta experiment right away!

        The reason for this "alias workaround" was the doubled messages
        when people answered to alias-msg's and Cc'd to the alias...
        Now the alias contains only my address and procmail/formail takes 
        care of the rest; like mailing and adding "Errors-To" and "Reply-To".



MISCELLANEOUS
     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_.

There are several other such builtin expansions, so you should read that
section for more info.


        Been reading through that section several times, but first now
        I _understood_ what is said there. Thanks again!

 
 .........................................................................
      Pekka Koski = koski(_at_)rieska(_dot_)oulu(_dot_)fi  -  CRIS  #2351 TNeck 
-=FAF=-  
       (finger for PGP public key or email me with Subject: send PGP)
                        ICBM address 65.02N 25.27E
           ..................................................

                        Speed kills. Use Windows. 

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