Hey folks, I'd like to do something with procmail not at all related to spam
or smartlist!
I want to search for a From line, a Subject line, and the first line of the
body.
From:(_dot_)*someone(_at_)somewhere\(_dot_)com
Subject: Subject
begin 644 file.tar.gz
How can I search for them, in the above order (Check From line, then Subject
line, then body scan) and if they all match I want to send the body of the
message to a special program via pipe.
I was going to do this
:0
* ^From:(_dot_)*someone(_at_)somewhere\(_dot_)com
* ^Subject: Subject
{
:0 B
* begin 644 file.tar.gz
{
# should this be
# :0fb
# rather than what it is?
# I just want the body
# sent to the program
:0
| /path/to/my/program
}
}
the problem is that
1) it seems inefficient
2) it's ugly
3) it sends the headers to 'program' (do I use 'fb'?)
Thanks for any improvements you can make.
TjL