receive email

Hello there,
I have a little script that checks the subject of the email and if its blacklisted it would not deliver the email.. the issue here is that I am trying to blacklist an email subject but each time I get a forum message from a different user it wont work because its different.. here's what I have

[(04:34 PM)][(root@dedico)] [(/home/admin)] $ cat .procmailrc
*^Subject: (spammingEmails|sent you comment|posted a message)

[(04:36 PM)][(root@server)] [(/home/admin)] $ cat procmail.log
procmail: [28023] Thu Mar 22 16:34:59 2012
procmail: No match on "^Subject: (spammingEmails|sent you comment|posted a message)"
procmail: Executing "/usr/sbin/sendmail,-oi,"
procmail: Assigning "LASTFOLDER=/usr/sbin/sendmail -oi"
procmail: Notified comsat: "admin@:/usr/sbin/sendmail -oi"
From  Thu Mar 22 16:34:59 2012
 Subject: Joseph posted a message
  Folder: /usr/sbin/sendmail -oi

Open in new window

Who is Participating?
arnoldConnect With a Mentor Commented:
Note your recipe does not account for the user who
The recipe

*^Subject: .* (spammingEmail|sent you comment|posted a message)

Your redirect
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.