There's no lock, but since it's not matching I'll deem that moot.
Are you sure the body of the message you're trying to filter is plaintext?
In other words, put a test for a Content-Type: text/plain header in there,
see if that matches or not. I'm guessing it is, because your post to the
list came with that header.
You have my sympathies, let us know what it is when you find it.
daniel lance herrick wrote;
The only documentation I have is the man pages, which has always been
enough - procmail has sorted my mail for me for years. But all my previous
recipes have tested the headers of the messages.
Now I want to check the body, also. The man pages say it is simple and
straightforward. Just as checking the headers is. Obviously I am
overlooking something trivial and obvious. Somebody please look over my
shoulder. I haven't learned anything useful about this since writing the
message below last Tuesday.
dan
On Tue, 8 Oct 2002, daniel lance herrick wrote:
I must be blind.
I'm writing a spam and malware filter for an e-mail discussion list. Dump
anything with a header "Content-Type: text/html" or "Content-Type:
multipart/". That part works, as procmail always has worked for me.
Also dump anything with any of " " or "<font" or "<a href=" in the
body. Nothing I do works. I've found "B" as a flag in the man pages, I've
found "* B ??" in examples here and elsewhere, but still haven't been able
to find a manual describing that syntax. (This is the first time I've ever
tried to make procmail match something in the body of e-mail.)
I'm replying to test messages so that there are cascading lines like
On Mon, 7 Oct 2002, daniel lance herrick wrote:
in the body of the messages I'm testing with.
With .procmailrc as follows:
# This is the Theonomy-L spam filter
LOGFILE=procmail.log
LOGABSTRACT=all
VERBOSE=yes
:0 cB
* daniel
$HOME/mail/danielbody
# end of test spam filter
the log comes out looking like
procmail: [7916] Tue Oct 8 22:57:59 2002
procmail: No match on "daniel"
procmail: Locking "/var/spool/mail/theonomy-l.lock"
procmail: Assigning "LASTFOLDER=/var/spool/mail/theonomy-l"
procmail: Opening "/var/spool/mail/theonomy-l"
procmail: Acquiring kernel-lock
procmail: Unlocking "/var/spool/mail/theonomy-l.lock"
procmail: Notified comsat: "theonomy-l(_at_)1658:/var/spool/mail/theonomy-l"
From root Tue Oct 8 22:57:59 2002
Subject: Now it's Wednesday (was: Re: it's Tuesday
Folder: /var/spool/mail/theonomy-l
1686
--
Fred Morris
m3047(_at_)inwa(_dot_)net
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail