On Mon, 8 May 2000, brian moore wrote: > > true. procmail ain't ideal for this, but it's the best tool around > without loading perl on every MIME'd mail. >
how do you put this in a exim.conf file? do you use it as your .procmailrc or a system-wide one? thanks, > > :0 > > * < 50000 > > { > > > > :0 B: > > * .*(name=.*\.vbs|[EMAIL PROTECTED]).* > > /share/etc/ILOVEYOU > > } > > I find this one is a bit safer (though slightly more complex) -- note > that your filter will match your mail as well as this one. > > :0 > *^Content-type: (multipart/mixed|application/octet-stream) > { > :0 B > *^Content-Disposition: (attachment|inline); > *filename=".*\.(vbs|wsf)" > { > :0 fbw > |/usr/bin/sed -e 's/\([nN][aA][mM][eE]=".*\.[vV][bB][sS]\)"/\1.txt"/' \ > -e 's/\([nN][aA][mM][eE]=".*\.[wW][sS][fF]\)"/\1.txt"/' > > } > } > > This will rename 'foo.vbs' to 'foo.vbs.txt', which breaks the > auto-execution. It's relatively lightweight, so you can leave it in > (sadly, I still pick up a couple of happy99's a day still). > > -- > Brian Moore | Of course vi is God's editor. > Sysadmin, C/Perl Hacker | If He used Emacs, He'd still be waiting > Usenet Vandal | for it to load on the seventh day. > Netscum, Bane of Elves. > > []s Mario O.de Menezes "Many are the plans in a man's heart, but IPEN-CNEN/SP is the Lord's purpose that prevails" http://curiango.ipen.br/~mario Prov. 19.21 http://www.revistalinux.com.br