Link to home
Start Free TrialLog in
Avatar of XK8ER
XK8ERFlag for United States of America

asked on

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
LOGFILE=$HOME/procmail.log
VERBOSE="on"
:0
*^Subject: (spammingEmails|sent you comment|posted a message)
/dev/null
:0
! myemail@gmail.com


[(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,myemail@gmail.com"
procmail: Assigning "LASTFOLDER=/usr/sbin/sendmail -oi myemail@gmail.com"
procmail: Notified comsat: "admin@:/usr/sbin/sendmail -oi myemail@gmail.com"
From noreply@mysite.com  Thu Mar 22 16:34:59 2012
 Subject: Joseph posted a message
  Folder: /usr/sbin/sendmail -oi myemail@gmail.com

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of arnold
arnold
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial