procmail
[Top] [All Lists]

Howto do AND in search pattern?

1998-04-14 04:42:14
Hello,

        I have a quite a few entries in my .procmailrc, but don't know how to
set it up in such a way that I can shorten it a bit. There are for instance:

"""""""""""""""""""""""""""""""""
:0
* ^From.*dpg-baf
{
    :0 c
    ! elena(_at_)pc-kae
}
:0
* ^To.*dpg-baf
{
    :0 c
    ! elena(_at_)pc-kae
}
:0
* ^Cc.*dpg-baf
{
    :0 c
    ! elena(_at_)pc-kae
}
"""""""""""""""""""""""""""""""""
What I want is something like
:0
* ^\(From \OR To \OR Cc\).*dpg-baf
{
    :0 c
    ! elena(_at_)pc-kae
} 
where I began my fictious commands with a backslash. HOWTO do this right?

Thanks in advance,
Marko

 ---------------------------------------------------------------------------
| Marko K"aning             Tel.  +3834 515 224/227  |  Fax. +3834 554 301  |
| INP Greifswald                   email : kaening(_at_)inp-greifswald(_dot_)de 
       |
| (finger me for pgp key)          www   : http://pc-kae.inp-greifswald.de  |
 ---------------------------------------------------------------------------

<Prev in Thread] Current Thread [Next in Thread>
  • Howto do AND in search pattern?, marko <=