On Mon, 19 Jun 2006 15:56:56 -0500, Michael Bluejay wrote:
I'm trying to figure out how to filter spam where the message is
nothing but a bunch of image attachments. I haven't figured out a
way to filter spam that's just a single image, but when it's a jigsaw
of several images I figure I can check to see if the messages
contains multiple images. But I don't know a regexp that will do
that. I couldn't find syntax for matching something, say, 10 or more
times. I think the following works in Perl but it didn't seem to
work in Procmail:
:0 B
* (_NextPart.+){10,}
!filterbox(_at_)mydomain(_dot_)com
# Delete emails with 'excessive' <img> references
:0B
* -6^0
* 1^1 ()<img
{
X="$="
LOG=">>>> DELETED - (6+$X) HTML <img> tag's $TOJONZ $NL"
:0 fwh
| formail -I"X-DELETED-SPAM: (6+$X) HTML <img> tag's ${TOJONZ}"
:0:
$DELETE
}
It's your call as to how mant HTML <img... tags you'll accept.
Jonesy
--
Marvin L Jones | jonz | W3DHJ | linux
38.24N 104.55W | @ config.com | Jonesy | OS/2
*** Killfiling google posts: <http//jonz.net/ng.htm>
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail