procmail
[Top] [All Lists]

Re: How to filter multiple image attachments?

2006-08-13 08:41:44
fix your dates

Michelle Konzack wrote:
Hi Michael,

A little bit lat, but I was in Palestine and the Israelian Autority
had arrest me for 8 days...  (coming back yesterday)

I use the following INCLUDERC:

----[ '/home/michelle.konzack/.procmail/FLT_gif_jpeg' ]-------------

####################################################################
# 
# FLT_gif_jpeg
# 
####################################################################

:0
* > 10000
* B ?? ^Content-Type:.*image/(gif|jpeg|pjpeg)
ATTENTION.FLT_gif_jpeg/

--------------------------------------------------------------------

The "* > 10000" is a long time experience since
most mailinglist messages are under 8 kByte.

This catch per day more then 30 MByte of Pics-Spam.

Greetings
    Michelle Konzack



Am 2006-06-19 15:56:56, schrieb Michael Bluejay:
  
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

    
------------------------- END OF REPLYED MESSAGE -------------------------


  
____________________________________________________________
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
<Prev in Thread] Current Thread [Next in Thread>