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

Re: Mailman and summary

To: Namazu <namazu-users-en@namazu.org>
Subject: Re: Mailman and summary
From: Philip S Tellis <philip@ncst.ernet.in>
Date: Sat, 21 Jun 2003 15:42:09 +0530 (IST)
Reply-to: namazu-users-en@namazu.org
Message-id: <Pine.LNX.4.44.0306211540180.4937-100000@bigears.ncst.ernet.in>
On Fri, 20 Jun 2003, Earl Hood wrote:

<http://mm.tkikuchi.net/pipermail.pl>

Looking at the filter, it appears you will not get any field based
indexing.  I.e. Namazu has special support for mail messages by

I've patched the filter to do field based indexing.  Not sure if it 
works in all cases.  Try it out:

--- namazu-2.0.10/filter/pipermail.pl   Sat Jun 21 14:35:43 2003
+++ pipermail.pl        Sat Jun 21 15:19:28 2003
@@ -88,7 +88,9 @@
 sub pipermail_filter ($$) {
     my ($contref, $weighted_str) = @_;
 
+    $$contref =~ s{<h1>(.*?)</h1>\s*<b>(.*?)</b><a 
href=.*?>(.*?)</a><br>\s*<i>(.*?)</i>}
+                       {Subject: $1\nFrom: $2 <$3>\nDate: $4\n</H1>}si;
     $$contref =~ s/<!--endarticle-->.*//s;
-    $$contref =~ s/(<\/H1>).*<!--beginarticle-->/$1/s;
+    $$contref =~ s/(<\/H1>).*<!--beginarticle-->/$1/si;
 }
 1;


-- 
Maryann's Law:
        You can always find what you're not looking for.




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