Here is the snippet of code that writes a line about a
received email to a montitor file named mail_log - it is
at the end of another long recipe:
# save subject and date to file
:0
{
:0 wci:
* ^Subject:[ ]+\/.*
| echo "`date '+%a %b %d %Y'` " $MATCH >>$HOME/mail_log
}
This snippet below is supposed to remove the line written by the
code above when a Re: to the original email is received:
# remove line from the monitor file if the body has killmail in it
:0Bwi:$HOME/mail_log$LOCKEXT
* killmail|killemail|kill mail|kill email|mailkill|mail kill
* ^Subject: Re:[ ]+\/[^ ].*
| fgrep -v "$MATCH" $HOME/mail_log > $HOME/temp && \
mv $HOME/temp $HOME/mail_log || rm -f $HOME/temp
/dev/null
First, from reading a response to another question the line
* killmail|killemail|kill mail|kill email|mailkill|mail kill
should be
* (killmail|killemail|kill mail|kill email|mailkill|mail kill)
right?
The recipe is removing the line from the file. It is *not*
sending the email to the bit bucket - it is sending it out.
I can't figure out why. Any help appreciated -
Tom
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail