namazu-users-en
[Top] [All Lists]

Re: namazu doing CGI env check (was Re: Formats of NMZ.* files)

2002-09-05 00:24:57
In article <200209050336(_dot_)g853aCq02605(_at_)gator(_dot_)earlhood(_dot_)com>
earl(_at_)earlhood(_dot_)com writes:

Unfortunately, it lacks NMZ.field.* support. Ok, I'll add the function
to my ToDo list. If I can do it, you will make it easier.

Sorry, it's my misunderstood. It's already supported.

It will be part of the next mharc release, and is in the
mharc CVS tree at <http://savannah.gnu.org/cvs/?group=mhonarc>.
I whipped up a MHArc::Namazu module to contain utility methods
for accessing the field data.

That's great work.

By the way, I can made such program. The following is an example code.

#!/usr/bin/perl
use Search::Namazu;
my $id = 
'<199901021009(_dot_)TAA05521(_at_)list(_dot_)daionet(_dot_)gr(_dot_)jp>';
@hlists = Search::Namazu::Search(index => '/home/knok/namazu/index/inbox',
                                 query => "+message-id:$id");
if (@hlists) {
    open(FD, $hlists[0]->uri);
    while (<FD>) {
        print $_;
    }
}
-- 
NOKUBI Takatsugu
E-mail: knok(_at_)daionet(_dot_)gr(_dot_)jp
        knok(_at_)namazu(_dot_)org / knok(_at_)debian(_dot_)org

<Prev in Thread] Current Thread [Next in Thread>