From clamav-devel-bounces@lists.clamav.net  Thu May 21 16:08:31 2009
Return-Path: <clamav-devel-bounces@lists.clamav.net>
X-Original-To: list@tad.clamav.net
Delivered-To: list@tad.clamav.net
X-Virus-Scanned: Debian amavisd-new at tad.clamav.net
Received: from tad.clamav.net ([127.0.0.1])
	by localhost (tad.clamav.net [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id yCrLmVAbISBf; Thu, 21 May 2009 16:08:31 +0200 (CEST)
Received: from tad.clamav.net (localhost.localdomain [127.0.0.1])
	by tad.clamav.net (Postfix) with ESMTP id DA4B616C2B6;
	Thu, 21 May 2009 16:08:30 +0200 (CEST)
X-Original-To: clamav-devel@tad.clamav.net
Delivered-To: clamav-devel@tad.clamav.net
X-Virus-Scanned: Debian amavisd-new at tad.clamav.net
Received: from tad.clamav.net ([127.0.0.1])
	by localhost (tad.clamav.net [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id AjX+N4P0JZVM for <clamav-devel@tad.clamav.net>;
	Thu, 21 May 2009 16:08:29 +0200 (CEST)
Received: from Quad (localhost.localdomain [127.0.0.1])
	by tad.clamav.net (Postfix) with ESMTP id 4BCB016C2B5
	for <clamav-devel@lists.clamav.net>;
	Thu, 21 May 2009 16:08:29 +0200 (CEST)
Date: Thu, 21 May 2009 16:08:32 +0200
From: Tomasz Kojm <tkojm@clamav.net>
To: clamav-devel@lists.clamav.net
Message-ID: <20090521160832.766fcea2@Quad>
In-Reply-To: <DBF3D749-77A5-4C8C-8B62-E63F6F7BD30E@gmail.com>
References: <mailman.1.1242208804.15758.clamav-devel@lists.clamav.net>
	<Pine.LNX.4.58.0905131115420.9068@mail3.jubileegroup.co.uk>
	<40FF3EB574329C459B49338F779CE44E015D905BC7@bosmail2k7.advent.com>
	<DBF3D749-77A5-4C8C-8B62-E63F6F7BD30E@gmail.com>
Organization: ClamAV
X-Mailer: Claws Mail 3.5.0 (GTK+ 2.16.1; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Subject: Re: [Clamav-devel] PATCH: Enhanced exclude / include support for
 clamscan
X-BeenThere: clamav-devel@lists.clamav.net
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: ClamAV Development <clamav-devel@lists.clamav.net>
List-Id: ClamAV Development <clamav-devel.lists.clamav.net>
List-Unsubscribe: <http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-devel>,
	<mailto:clamav-devel-request@lists.clamav.net?subject=unsubscribe>
List-Post: <mailto:clamav-devel@lists.clamav.net>
List-Help: <mailto:clamav-devel-request@lists.clamav.net?subject=help>
List-Subscribe: <http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-devel>,
	<mailto:clamav-devel-request@lists.clamav.net?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: clamav-devel-bounces@lists.clamav.net
Errors-To: clamav-devel-bounces@lists.clamav.net

On Tue, 19 May 2009 15:49:23 +0100
Mark Allan <markjallan@gmail.com> wrote:

> > On the one hand, you're right that were clamscan to have a command- 
> > line option to tell it to read a list of files on stdin, the logic I  
> > built into it could be implemented externally, either with home- 
> > grown scripts or with a separate utility bundled with clamav.  I  
> > certainly wouldn't be adverse to achieving my goal that way, where  
> > that functionality to be provided by clamscan.
> 
> I think this way would be much better than changing the interface, and  
> would have the added benefit of being significantly more powerful than  
> you probably realise.  If we could supply a list of files either on  
> stdin or within a single text file passed on the command line with eg.  
> a -f flag, users and admins could incorporate ClamAV into scripts/ 
> tasks and automated jobs a lot more easily than is currently  
> possible.  It would also eliminate another issue I've had to work  
> around which is the lack of case-insensitive regex matching - I could  
> perform my own matching and just supply filenames within a temporary  
> file or via stdin.

I added support for --file-list/-f in both clamscan and clamdscan in SVN.

Thanks,

-- 
   oo    .....         Tomasz Kojm <tkojm@clamav.net>
  (\/)\.........         http://www.ClamAV.net/gpg/tkojm.gpg
     \..........._         0DCA5A08407D5288279DB43454822DC8985A444B
       //\   /\              Thu May 21 16:07:38 CEST 2009
_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net

