Duplicate e-mails

software development

#1

Hello, I’m having a problem with my procmail. All e-mails that do not have the subject “notification of payment” are being put into the user’s mailbox twice but only being sent to the hotmail account once. Can somebody help please? I want to have the e-mail put into the user’s mailbox once and sent to the hotmail account and the script to run when the subject is notification of payment. Here is my .procmailrc file:

#Preliminaries
SHELL=/bin/bash #Use the Bourne shell (check your path!)
MAILDIR=${HOME}/Maildir #First check what your mail directory is!
LOGFILE=${HOME}/procmail.log
LOG="— Logging ${LOGFILE} for ${LOGNAME}, "
VERBOSE=on
#Whatever recipes you’ll use
#The order of the recipes is significant

:0c

  • ^Subject:.*
    !somebody@hotmail.com

:0c

  • ! ^Subject:.Notification of Payment Received.
    ${HOME}/Maildir/cur
    :0c
  • ^Subject:.Notification of Payment Received.
    | php “${HOME}/script.php”

thanks