procmail
[Top] [All Lists]

Re: Filter first on From and then in Body

2005-05-18 14:08:26
Sebastian Stein:
Ruud H.G. van Tol:

Let me explain my code a little bit.

A slightly modified version:

    :0:
    * 
^[^:]*List[^:]*:.*\<uml-devel(_at_)lists\(_dot_)sourceforge\(_dot_)net\>

This condition looks for a header-line with the letters 'List' 
somewhere before the first colon, and the list address somewhere 
after that first colon. If you look into the headers of a 
message from that list, it will be easy to find a more exact 
headername, such as 'List-Post'.

The ^ at the start of the condition is an anchor to the start of 
a header line (because it matches a newline-character, just like 
a $ would).

The character class [^:] means: anything but a colon. The * after 
it means: 0 or 1 or more of the previous.


    * B ?? SVN[ ]commit

This condition just checks if 'SVN<space>commit' exists in the body. 

It could also be written as:
     * B ?? SVN( )commit
or totally without any brackets as
     * B ?? SVN commit

If the string could be 'SVN commit' or 'SVN-commit' then use this:
     * B ?? SVN[- ]commit
or this:
     * B ?? SVN( |-)commit


    L-uml-cvs

This is normally the name of the file to which the message is 
appended. If the name is already occupied by a directory, then 
the message will be written to a newly created file inside that 
directory.


Great, I have now this as you suggested and it works!

Good.

-- 
Grtz, Ruud

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail