procmail
[Top] [All Lists]

Re: filtering for lists

1999-02-17 10:53:18
On Wed, 17 Feb 1999, Olivier MATHIEU wrote:

There are few days now i try to use procmail to filtering the messages
to a listproc system.
I want the messages to be formatted in a special way : the subject must
have certain flags and musn't be empty, the message itself mustn't be
larger than a certain size, and so on...

Check the procmailrc manpage.
These examples might help.
You might want to do something other than drop them to /dev/null.

# drop any message with a body of more than 50000 bytes
:0B
* > 50000
/dev/null


# drop any message that doesn't have a subject
# searches the header by default
:0
* !^Subject:
/dev/null


# drop any message that doesn't say Jeff in the Subject
# searches the header by default
:0
* !^Subject: .*Jeff
/dev/null

Hope these help,
-jeff
--
Jeff Schaller                 | Voice: (316) 946-7255
UNIX System Administrator     | Fax:   (316) 946-2809
I do not speak for the Bombardier Aerospace Group.


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