> is there a way to dump a message that contains a certain string of words in
> the subject line, or in the message body??
> 
> i.e. take any message with the string"pretty park" contained in it and send
> it to /dev/null??

.qmail:
        # the next two lines must be one ... unless sent by email.
        | 822field subject |grep -i "pretty park" >/dev/null \
          && echo dropping pretty park message && exit 99
        # dito.
        | sed '1,/^$/d' |grep -i "pretty park" >/dev/null \
          && echo dropping pretty park message && exit 99
        # or whatever your delivery type is.
        ./Maildir/ 

you'll need http://cr.yp.to/mess822.html for that.

Regards, Uwe

Reply via email to