From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/962 Path: news.gmane.org!not-for-mail From: Clemens Fischer Newsgroups: gmane.emacs.gnus.user Subject: Re: ifile or similar Date: Thu, 22 Aug 2002 14:26:08 +0200 Message-ID: <3ct76pwf.fsf@spotteswoode.dnsalias.org> References: <878z34vu6q.fsf@virgil.koldfront.dk> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1138667815 9114 80.91.229.2 (31 Jan 2006 00:36:55 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2006 00:36:55 +0000 (UTC) Original-X-From: nobody Tue Jan 17 17:28:24 2006 Original-Path: quimby.gnus.org!news.ccs.neu.edu!news.dfci.harvard.edu!news.harvard.edu!iad-peer.news.verio.net!news.verio.net!newsfeed.stueberl.de!fu-berlin.de!uni-berlin.de!p3ee27dbb.dip.t-dialin.NET!not-for-mail Original-Newsgroups: gnu.emacs.gnus Original-NNTP-Posting-Host: p3ee27dbb.dip.t-dialin.net (62.226.125.187) Original-X-Trace: fu-berlin.de 1030042938 50025458 62.226.125.187 (16 [23066]) X-Orig-Path: ID-23066.news.dfncis.de!not-for-mail User-Agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.2 (i386--freebsd) Cancel-Lock: sha1:Rq5sh4leWSVhJhoJN9Eyktee1XE= Original-Xref: bridgekeeper.physik.uni-ulm.de gnus-emacs-gnus:1102 Original-Lines: 34 X-Gnus-Article-Number: 1102 Tue Jan 17 17:28:24 2006 Xref: news.gmane.org gmane.emacs.gnus.user:962 Archived-At: Anders Wegge Jakobsen writes: > "Adam" == Adam Sjøgren writes: > > If you're already using procmail for splitting mail, it is pretty > straightforward to do: > > FOLDER=`ifile -gwc -Q |cut -d' ' -f1`.spool > # > :0: > $FOLDER i'm not sure about the options. the most recent version ifile-1.0.7 has (finally!) an option for easier scripting. the call should be more like: # -ino: 2-20.08.02-20:08 new option "-c" with version 1.0.7: FOLDER=`/usr/local/bin/ifile -cQ` the option "-c" or "--concise" works with "-q" (query database for classification) and "-Q", which queries the database /and/ inserts the statistics of the current document into it. this obsoletes: #FOLDER=`ifile -g -v0 -Q |head -1 |cut -d' ' -f1` the "-c" option basically does what the extranous "|cut ..." pipe is (propably) supposed to do. the "-w" option in your invocation would make ifile lex for white space separated words. i think it is better to let it use the default lexer, which considers punctuations as well, thus including statistics on typical host name particles and header values. clemens