I already have ClamAV, Spamassassin and exim.filters on my Centos server as well as SPAM+Anti-Virus on our firewall.
These are still getting through which is why I'm looking for a way to filter this specific problem. I've got a work-around by using unconv and Libreoffice to convert the documents to text but there is a huge ovehead doing it this way. I was hoping for something like Spreadsheet::ParseExcel which would be much quicker. I can use that method for the XLS files, and I've just found Spreadsheet::XLSX for XLSX files. However, converting DOC/DOCX is proving harder. I also haven't managed to find out how to detect macros in the original file On Tuesday 20 October 2015 02:02:53 Wah Peng wrote: > Hi, > > I think you'd better setup a antivirus/antispam gateway for the incoming > emails.ClamAV and Spamassassin are what you may want to check. > > regards. > > On 2015/10/19 ζζδΈ 18:35, Gary Stainburn wrote: > > Is there any way within Perl to examine DOC and XLS files to > > > > 1) see if the document is empty, i.e. no text and no cell contents > > 2) has Macros embedded > > > > We're getting lots of virus emails claiming to be invoices, receipts, > > etc. with documents that match the above criteria which actually contain > > a virus. > > > > I'm trying to stop them. > > > > I know I can do the first bit for XLS files using > > Spreadsheet::ParseExcel, and I'm looking to see how to do this for DOC > > files. > > > > However, I can't find out how to do step 2. The result I need to be able > > to run on a Centos / Exim setup. > > > > Gary -- Gary Stainburn Group I.T. Manager Ringways Garages http://www.ringways.co.uk -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/