nick wrote:

> Gary V wrote:
>>>The first 8 bytes of the file are are exactly the same as a cab file
>>>([EMAIL PROTECTED]@[EMAIL PROTECTED]@ shows on my vim screen) so I would 
>>>think file(1) being
>>>able to differentiate it from a .cab file may not look promising.
>> 
>> 
>> Since it really is a cab file, I guess it should not be
>> differentiated:
>> 
>> ~# cabextract need_xcars.snp
>> Extracting cabinet: need_xcars.snp
>>   extracting _AccRpt_.snp
>> 
>> All done, no errors.
>> 
>> ~# cabextract RUNHELP.CAB
>> Extracting cabinet: RUNHELP.CAB
>>   extracting runhelp.inf
>> 
>> All done, no errors.
>> 
>> Gary V


>> 
> Where does this leave me exactly?

> Will amavis be able to tell the difference between an snp and a cab, or 
> will I have to allow cabs to allow snps?

This sample (same as before but only showing cab/snp) will allow files
with a name that ends in .snp no matter what type of file it really is
under the hood. If a cab file is named anything else, it will be blocked.

# allow files whose name ends in this extension:
[ qr'.\.(snp)$'i => 0 ],

# block -  file type determined by file(1) utility:
 qr'^\.(cab)$',
 
);

Gary V



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to