procmail
[Top] [All Lists]

RE: simple recipe for keywords in Subject: and Body.

2000-07-10 13:28:44
sorry to bother you but you suggest using Scoring, I think.  At least that
is what it looks like for tail'ing the log file.   I don't fully understand
the scoring mechanics, and figured I could stay far away from it.  However,
that said, implemented your way I still get no hits on the keywords in the
body of an email.  Only when the keyword is in the Subject line is it
working.

Current procmailrc:
#Preliminaries
SHELL           = /usr/local/bin/bash
MAILDIR         = $HOME/mail       # Make sure this directory exists!
PMDIR           = $HOME/Procmail
LOGFILE         = $PMDIR/log
LOGABSTRACT     = "all"
VERBOSE         = "on"
SPOOL           = $HOME/Procmail/spool
BUP_SPOOL       = $SPOOL/backup.spool

:0 c:
$BUP_SPOOL

:0:
* 1^0 ^Subject:.*(delete|remove|suspend)
* 1^0 .*delete
remove

any help is helpful.

-----Original Message-----
From: Jeffrey Finkelstein [mailto:finkels(_at_)corpsite(_dot_)com]
Sent: Monday, July 10, 2000 1:58 PM
To: Morianos(_at_)LastMinuteTravel(_dot_)Com
Subject: Re: simple recipe for keywords in Subject: and Body.


No, you shouldn't need it.

 - jeff

On Mon, Jul 10, 2000 at 01:50:10PM -0400, 
Morianos(_at_)LastMinuteTravel(_dot_)Com
wrote:
do I need the H and B to specify Header and Body? or not.

-----Original Message-----
From: Jeffrey Finkelstein [mailto:finkels(_at_)corpsite(_dot_)com]
Sent: Monday, July 10, 2000 1:07 PM
To: Morianos(_at_)LastMinuteTravel(_dot_)Com
Subject: Re: simple recipe for keywords in Subject: and Body.


Try something like:

:O:
* 1^0 ^Subject:.*(delete|remove|suspend)
* 1^0 .*keyword
remove

 -jeff

On Mon, Jul 10, 2000 at 12:40:34PM -0400, 
Morianos(_at_)LastMinuteTravel(_dot_)Com
wrote:
Maybe all you gurus can help a blind man see.  I need a simple recipe
that
will look for the keywords of 'remove, suspend, delete, or unsubscribe'
from
the subject OR the body of the message. The action will simply place
these
messages into the file called remove or something.

I am finding the keywords on the Subject line but not the body.

I have got, so far:

#Preliminaries
SHELL           = /usr/local/bin/bash
MAILDIR         = $HOME/mail       # Make sure this directory exists!
PMDIR           = $HOME/Procmail
LOGFILE         = $PMDIR/log
LOGABSTRACT     = "all"
VERBOSE         = "on"
SPOOL           = $HOME/Procmail/spool

#   Backup storage
BUP_SPOOL  = $SPOOL/backup.spool

:0 c:
$BUP_SPOOL

:O:
* H ?? ^Subject:.*(delete|remove|suspend)|\
* B ?? .*keyword
remove


Sorry for the simplistic request.

Michael
<Prev in Thread] Current Thread [Next in Thread>