Namazu-users-en(old)


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Improvements to mhonarc.pl filter for Namazu



knok> In article <200208010532.g715W0e31774@xxxxxxxxxxxxxxxxxx>
knok> earl@xxxxxxxxxxxx writes:

knok> >> I hope this modified version can make it into the standard Namazu
knok> >> release.

knok> That's great, I'll apply them. Thank you.

This works great, I love the combination of MHonArc and Namazu.

( I am testing with 2.0.11pre4 etc, found at test directory,
ftp://ftp.namazu.org/namazu/test/namazu-2.0.11pre4.tar.gz )

Thanks Earl,

Bye the way, and sorry for shifting to off-topic,
I needed to change lib/mhonarc/mhamain.pl to collect Date
field.
Date Field seems to have bogus Received line without this
change on my environment. For furthur discussion, if needed,
I will move to mhonarc-users, thanks,
(Sorry for not the most recent version, I am sticking to
NetBSD/pkgsrc.)

--- lib/mhonarc/mhamain.pl-2.5.3	Tue Aug 13 10:54:35 2002
+++ lib/mhonarc/mhamain.pl	Tue Aug 13 16:14:52 2002
@@ -760,11 +760,12 @@
 
 	## Treat received field specially
 	if ($_ eq 'received') {
-	    @array = split(/;/, $fields->{$_}[0]);
-	    $date = pop @array;
+#	    @array = split(/;/, $fields->{$_}[0]);
+#	    $date = pop @array;
 	## Any other field should just be a date
 	} else {
 	    $date = $fields->{$_}[0];
+#		open(TMP, ">/tmp/log.$$"); print TMP $date,"\n"; close(TMP);
 	}
 	$date =~ s/^\s+//;  $date =~ s/\s+$//;
 

---
Makoto Fujiwara,