Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Oct 2000 16:15:03 -0700 (PDT)
From:      <keith@telestream.com>
To:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Procmail 
Message-ID:  <Pine.LNX.4.10.10010101610440.24597-100000@mail.telestream.com>
In-Reply-To: <Pine.LNX.4.10.10010101424220.21073-100000@mail.telestream.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In response to my own posting. I found this to work great for getting
offending .vbs files from mail attachements. The original posting I got
from dejanews.

http://x70.deja.com/[ST_rn=ps]/getdoc.xp?AN=638845263&search=thread&CONTEXT=971217185.42205279&HIT_CONTEXT=971215500.33226801&HIT_NUM=102&hitnum=2


ws = '[         ]*'
bodyws = '[     ]*($[   ]+)*'
dotstar = '.*($[        ].*)*'
fieldname = 'Content-[-a-z0-9_]+'
vbs = '"?[^"]*\.vbs'

:0
* 9876543210^0      $ ^${fieldname}:.*=${ws}${vbs}
* 9876543210^0 B ?? $ ^${fieldname}:${dotstar}=${bodyws}${vbs}
/tmp/vbs-found

Keith




=================================
Keith W.
At the helm <for better or worse>

My non work related site
www.cydonia.net
=================================


On Tue, 10 Oct 2000 keith@telestream.com wrote:

> Anyone have a clue what kind of rule would I need to filter out things
> that are an Attachement on a mail via procmail?
> I've got things filtering fine by subject and sender but would like to be
> able to work the attachment as well. 
> 
> Thanks. 
> 
> Keith
> 
> 
> =================================
> Keith W.
> At the helm <for better or worse>
> 
> My non work related site
> www.cydonia.net
> =================================
> 
> 
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
> 



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.10.10010101610440.24597-100000>