From rex at nosyntax.net Sun Apr 8 13:58:30 2007 From: rex at nosyntax.net (rex) Date: Sun Apr 8 14:22:15 2007 Subject: [Namazu-users-en] References: [ (can't open the index) ]] Message-ID: <20070408045830.GL30698@x2.nosyntax.com> Synopsis: namazu.cgi cannot find the index (NMZ.*) files. namazu run from the command line works. Example: namazu "amazons and dawson" /srv/www/htdocs/ffarchive Results: References: [ amazons: 1052 ] [ dawson: 1026 ] Total 35 documents matching your query. 1. Re: Escaped birds - Dawson's Amazons (score: 393) Author: "Mona" Date: Fri, 06 Apr 2007 20:51:21 -0800 Hi Dot: Unfortunately, I was unable to hang around and watch the baby amazons fly yesterday. I had to leave around lunch....but Dr. Sue was incredibly nice and let me see a brief movie on how she acc /srv/www/htdocs/ffarchive/ff_msgs/ff2006-10/msg00138.html (3,677 bytes) Details: SUSE 10.2 using namazu 2.0.17 compiled from source with index files (NMZ*) in /srv/www/htdocs/ffarchives Template files are also in /srv/www/htdocs/ffarchives /srv/www/cgi-bin directory has files: namazu.cgi namazurc namazurc contains: Index /srv/www/htdocs Template /srv/www/htdocs/ffarchive Replace /srv/www/htdocs/ffarchive http://localhost/ffarchive (I've tried changing the above lines to everything that seems remotely reasonable with no good result after 3 days of trying) /srv/www/htdocs/ffarchive/index.html has: Freeflight List Archives

Freeflight Archives

Search String: [How to search]
[How to search]
All the files in /srv/www/htdocs/ffarchive have permissions: -rw-r--r-- 1 wwwrun www which are the usual permissions for a SUSE Apache server. Any help would be much appreciated -- it's been a very frustrating 3 days. Yes, I've read and re-read the docs and the list archives. Hennie Rautenbach had a similar problem in early March 2006, but unfortunately the solution was not posted to the list. -rex From yw3t-trns at asahi-net.or.jp Mon Apr 9 15:24:16 2007 From: yw3t-trns at asahi-net.or.jp (Tadamasa Teranishi) Date: Mon Apr 9 15:24:40 2007 Subject: [Namazu-users-en] Re: References: [ (can't open the index) ]] References: <20070408045830.GL30698@x2.nosyntax.com> Message-ID: <4619DC10.84FE75C3@asahi-net.or.jp> rex wrote: > > Template files are also in /srv/www/htdocs/ffarchives > > /srv/www/cgi-bin directory has files: > namazu.cgi > namazurc see. http://www.namazu.org/doc/manual.html.en#.namazurc It should not be "namazurc" and be ".namazurc". -- ===================================================================== TADAMASA TERANISHI yw3t-trns@asahi-net.or.jp http://www.asahi-net.or.jp/~yw3t-trns/index.htm Key fingerprint = 474E 4D93 8E97 11F6 662D 8A42 17F5 52F4 10E7 D14E From rex at nosyntax.net Mon Apr 9 16:01:03 2007 From: rex at nosyntax.net (rex) Date: Mon Apr 9 16:01:09 2007 Subject: [Namazu-users-en] Re: [ (can't open the index) ]] (Solved!) Message-ID: <20070409070103.GB32634@x2.nosyntax.com> rex [2007-04-07 21:19]: > Synopsis: namazu.cgi cannot find the index (NMZ.*) files. > namazu run from the command line works. > > Example: > namazu "amazons and dawson" /srv/www/htdocs/ffarchive > > Results: > > References: [ amazons: 1052 ] [ dawson: 1026 ] > > Total 35 documents matching your query. I solved the problem with a hack. No matter what I tried for the idxname in /srv/www/htdocs/ffarchive/index.html, the index files (NMZ*) were not found. I tried every name and path in "idxname= ..." that seemed reasonable with the identical result: http://localhost/cgi-bin/namazu.cgi?query=tex&submit=Search%21&idxname=ffarchive&max=20&result=normal&sort=score The response always is: Results: References: [ (can't open the index) ] Reading the documentation for the Nth time, I noticed this line: "If you omit index, namazu will assume /usr/local/var/namazu/index as target." I thought, "OK, if I can't insert the path namazi.cgi needs to find the index files, I can remove the idxname setting from index.html and copy the index files to the default location." I did that and it works. Since I was unable to make namazu.cgi find the index files no matter what I set idxname= to, there may be a bug in namazu.cgi. If the web search works in version 2.0.17 for anyone with the index files NOT in the default location (/usr/local/var/namazu/index/) then there isn't a bug. If it DOES work for someone, please post the relevant section of your index.html file. Mine (which does not work) is: Freeflight List Archives

Freeflight Archives

Search String: [How to search]
After removing the last two lines above and inserting: [How to search]
searches work (the NMZ.* files that previously were in /srv/www/htdocs/ffarchive are now in /usr/local/var/namazu/index/ ) I hope this helps someone... -rex From yw3t-trns at asahi-net.or.jp Mon Apr 9 16:51:53 2007 From: yw3t-trns at asahi-net.or.jp (Tadamasa Teranishi) Date: Mon Apr 9 16:52:18 2007 Subject: [Namazu-users-en] Re: [ (can't open the index) ]] (Solved!) References: <20070409070103.GB32634@x2.nosyntax.com> Message-ID: <4619F099.E45AE69D@asahi-net.or.jp> rex wrote: > > Since I was unable to make namazu.cgi find the index files no matter > what I set idxname= to, there may be a bug in namazu.cgi. If the web > search works in version 2.0.17 for anyone with the index files NOT in > the default location (/usr/local/var/namazu/index/) then there isn't a > bug. If it DOES work for someone, please post the relevant section of > your index.html file. Mine (which does not work) is: There is no such bug. It writes repeatedly. It is ".namazurc" that "namazu.cgi" reads. ("namazurc" is not read. ) You should make ".namazurc". (# mv namazurc .namazurc) I) When the index is only one I-a) .namazurc contains: Index /srv/www/htdocs/ffarchive Template /srv/www/htdocs/ffarchive Replace /srv/www/htdocs/ffarchive http://localhost/ffarchive I-b) NMZ.head.xxx : The line of "Idxname" is deleted. II) When you use two or more index file. I-a) .namazurc contains: Index /srv/www/htdocs Template /srv/www/htdocs/ffarchive Replace /srv/www/htdocs/ffarchive http://localhost/ffarchive I-b) NMZ.head.xxx : ex) Each index is specified. * By the way, Though "localhost" is used, Please set a correct host name. * The index file need not be opened to the public with the Web server. -- ===================================================================== TADAMASA TERANISHI yw3t-trns@asahi-net.or.jp http://www.asahi-net.or.jp/~yw3t-trns/index.htm Key fingerprint = 474E 4D93 8E97 11F6 662D 8A42 17F5 52F4 10E7 D14E From rex at nosyntax.com Sun Apr 8 13:26:30 2007 From: rex at nosyntax.com (rex) Date: Mon Apr 9 16:57:27 2007 Subject: [Namazu-users-en] References: [ (can't open the index) ]]] Message-ID: <20070408042630.GJ30698@x2.nosyntax.com> Synopsis: namazu.cgi cannot find the index (NMZ.*) files. namazu run from the command line works. Example: namazu "amazons and dawson" /srv/www/htdocs/ffarchive Results: References: [ amazons: 1052 ] [ dawson: 1026 ] Total 35 documents matching your query. 1. Re: Escaped birds - Dawson's Amazons (score: 393) Author: "Mona" Date: Fri, 06 Apr 2007 20:51:21 -0800 Hi Dot: Unfortunately, I was unable to hang around and watch the baby amazons fly yesterday. I had to leave around lunch....but Dr. Sue was incredibly nice and let me see a brief movie on how she acc /srv/www/htdocs/ffarchive/ff_msgs/ff2006-10/msg00138.html (3,677 bytes) Details: SUSE 10.2 using namazu 2.0.17 compiled from source with index files (NMZ*) in /srv/www/htdocs/ffarchives Template files are also in /srv/www/htdocs/ffarchives /srv/www/cgi-bin directory has files: namazu.cgi namazurc namazurc contains: Index /srv/www/htdocs Template /srv/www/htdocs/ffarchive Replace /srv/www/htdocs/ffarchive http://localhost/ffarchive (I've tried changing the above lines to everything that seems remotely reasonable with no good result after 3 days of trying) /srv/www/htdocs/ffarchive/index.html has: Freeflight List Archives

Freeflight Archives

Search String: [How to search]
[How to search]
All the files in /srv/www/htdocs/ffarchive have permissions: -rw-r--r-- 1 wwwrun www which are the usual permissions for a SUSE Apache server. Any help would be much appreciated -- it's been a very frustrating 3 days. Yes, I've read and re-read the docs and the list archives. Hennie Rautenbach had a similar problem in early March 2006, but unfortunately the solution was not posted to the list. -rex From rex at nosyntax.com Mon Apr 9 15:57:40 2007 From: rex at nosyntax.com (rex) Date: Mon Apr 9 16:57:28 2007 Subject: [Namazu-users-en] Re: [ (can't open the index) ]] (Solved!) Message-ID: <20070409065740.GA32634@x2.nosyntax.com> rex [2007-04-07 21:19]: > Synopsis: namazu.cgi cannot find the index (NMZ.*) files. > namazu run from the command line works. > > Example: > namazu "amazons and dawson" /srv/www/htdocs/ffarchive > > Results: > > References: [ amazons: 1052 ] [ dawson: 1026 ] > > Total 35 documents matching your query. I solved the problem with a hack. No matter what I tried for the idxname in /srv/www/htdocs/ffarchive/index.html, the index files (NMZ*) were not found. I tried every name and path in "idxname= ..." that seemed reasonable with the identical result: http://localhost/cgi-bin/namazu.cgi?query=tex&submit=Search%21&idxname=ffarchive&max=20&result=normal&sort=score The response always is: Results: References: [ (can't open the index) ] Reading the documentation for the Nth time, I noticed this line: "If you omit index, namazu will assume /usr/local/var/namazu/index as target." I thought, "OK, if I can't insert the path namazi.cgi needs to find the index files, I can remove the idxname setting from index.html and copy the index files to the default location." I did that and it works. Since I was unable to make namazu.cgi find the index files no matter what I set idxname= to, there may be a bug in namazu.cgi. If the web search works in version 2.0.17 for anyone with the index files NOT in the default location (/usr/local/var/namazu/index/) then there isn't a bug. If it DOES work for someone, please post the relevant section of your index.html file. Mine (which does not work) is: Freeflight List Archives

Freeflight Archives

Search String: [How to search]
After removing the last two lines above and inserting: [How to search]
searches work (the NMZ.* files that previously were in /srv/www/htdocs/ffarchive are now in /usr/local/var/namazu/index/ ) I hope this helps someone... -rex From rex at nosyntax.net Tue Apr 10 07:43:32 2007 From: rex at nosyntax.net (rex) Date: Tue Apr 10 07:43:34 2007 Subject: [Namazu-users-en] Re: [ (can't open the index) ]] (Solved!) In-Reply-To: <4619F099.E45AE69D@asahi-net.or.jp> References: <20070409070103.GB32634@x2.nosyntax.com> <4619F099.E45AE69D@asahi-net.or.jp> Message-ID: <20070409224332.GK32634@x2.nosyntax.com> Tadamasa Teranishi [2007-04-09 00:52]: > > It is ".namazurc" that "namazu.cgi" reads. > ("namazurc" is not read. ) Yes, I know that now, but the namazu-sample file in the tarball says: # This is a Namazu configuration file for namazu or namazu.cgi. # # Originally, this file is named 'namazurc-sample'. so you should # copy this to 'namazurc' to make the file effective. I followed the instructions and didn't see the contradictory instructions (copy to .namazurc) that appear elsewhere. > You should make ".namazurc". > (# mv namazurc .namazurc) Yes, I've now done that, and it works, thank you. > * By the way, Though "localhost" is used, Please set a correct host > name. I was only using "localhost" for testing. > * The index file need not be opened to the public with the Web server. I ran the command: chmod o-r NMZ* Thank you for the help. It is very good to have Namazu running. -rex From yw3t-trns at asahi-net.or.jp Tue Apr 10 11:33:21 2007 From: yw3t-trns at asahi-net.or.jp (Tadamasa Teranishi) Date: Tue Apr 10 11:33:49 2007 Subject: [Namazu-users-en] Re: [ (can't open the index) ]] (Solved!) References: <20070409070103.GB32634@x2.nosyntax.com> <4619F099.E45AE69D@asahi-net.or.jp> <20070409224332.GK32634@x2.nosyntax.com> Message-ID: <461AF771.6C0CCFFF@asahi-net.or.jp> rex wrote: > > Tadamasa Teranishi [2007-04-09 00:52]: > > > > It is ".namazurc" that "namazu.cgi" reads. > > ("namazurc" is not read. ) > > Yes, I know that now, but the namazu-sample file in the tarball says: > > # This is a Namazu configuration file for namazu or namazu.cgi. > # > # Originally, this file is named 'namazurc-sample'. so you should > # copy this to 'namazurc' to make the file effective. > > I followed the instructions and didn't see the contradictory > instructions (copy to .namazurc) that appear elsewhere. You should read the manual. see doc/en/manual.html. > namazurc settings > > Various settings are possible in mknmzrc or .mknmzrc. Namazu normally reads > configuration files in the following order: > > 1. $(sysconfdir)/$(PACKAGE)/namazurc > (Usually, /usr/local/etc/namazu/namazurc > 2. ~/.namazurc > 3. file which is specified by -f or --config=FILE --option. > (In case of CGI, it is .namazurc in the directory namazu.cgi is stored) > > If more than one configuration file is found, all of the files are loaded. > > Installation prepares a sample configuration file $(sysconfdir)/$(PACKAGE)/ > namazurc-sample. You can copy this to $(sysconfdir)/$(PACKAGE)/namazurc or to ~ > /.namazurc in your home directory. > > namazu.cgi > > namazu.cgi installation > > namazu.cgi is the CGI script for Namazu. namazu.cgi is installed in $ > (libexecdir) directory (usually /usr/local/libexec). If you copy namazu.cgi > into a CGI directory of your system, installation is done! > > .namazurc settings > > If you have a .namazurc file in the directory where namazu.cgi is stored, the > .namazurc file will be treated as a CGI configuration file. For the display to > be in Japanese, you need the following settings: > > Lang ja There seems to be a misunderstanding. > > It is ".namazurc" that "namazu.cgi" reads. > > ("namazurc" is not read. ) ".namazurc" that exists in the same directory as "namazu.cgi" is read. "namazurc" that exists in the same directory as "namazu.cgi" is not read. However, it is the third in "namazu.cgi" to read RC file that exists in the same directory. The first is "$(sysconfdir)/$(PACKAGE)/namazurc". (Usually, /usr/local/etc/namazu/namazurc) The second is "~/.namazurc". "$(sysconfdir)/$(PACKAGE)/namazurc" is read first though "namazu.cgi" doesn't read "namazrurc" of the same directory. -- ===================================================================== TADAMASA TERANISHI yw3t-trns@asahi-net.or.jp http://www.asahi-net.or.jp/~yw3t-trns/index.htm Key fingerprint = 474E 4D93 8E97 11F6 662D 8A42 17F5 52F4 10E7 D14E From rex at nosyntax.net Tue Apr 10 14:29:39 2007 From: rex at nosyntax.net (rex) Date: Tue Apr 10 14:29:42 2007 Subject: [Namazu-users-en] Re: [ (can't open the index) ]] (Solved!) In-Reply-To: <461AF771.6C0CCFFF@asahi-net.or.jp> References: <20070409070103.GB32634@x2.nosyntax.com> <4619F099.E45AE69D@asahi-net.or.jp> <20070409224332.GK32634@x2.nosyntax.com> <461AF771.6C0CCFFF@asahi-net.or.jp> Message-ID: <20070410052938.GO32634@x2.nosyntax.com> Tadamasa Teranishi [2007-04-09 19:33]: > rex wrote: > > > > I followed the instructions and didn't see the contradictory > > instructions (copy to .namazurc) that appear elsewhere. > > You should read the manual. see doc/en/manual.html. The directions in the namazu-sample are not consistent with the directions in the manual. How is the reader to know which is correct? Wouldn't it be wise to make the information in namazu-sample clear? For example: Do at least one of these three things: 1) Copy namazu-sample -> ~/.namazurc (Necessary to run namazu as a user) 2) Copy namazu-sample -> .namazurc in the directory where namazu.cgi is located (This or the step below is necessary for namazu.cgi) 3) Copy namazu-sample -> $(sysconfdir)/$(PACKAGE)/namazurc (Usually, /usr/local/etc/namazu/namazurc) > There seems to be a misunderstanding. There is? I don't know what it is. I solved my own problem with a work-around that wouldn't have been necessary if the documentation in namazu-sample were more clearly written. You provided a better solution than mine. > ".namazurc" that exists in the same directory as "namazu.cgi" > is read. "namazurc" that exists in the same directory as "namazu.cgi" > is not read. Understood. I understood it the first time you wrote it in your prior post. If the same statement were a comment in namazu-sample, it would have saved me a significant amount of work and frustration. > However, it is the third in "namazu.cgi" to read RC file that > exists in the same directory. > > The first is "$(sysconfdir)/$(PACKAGE)/namazurc". (Usually, > /usr/local/etc/namazu/namazurc) > The second is "~/.namazurc". > > "$(sysconfdir)/$(PACKAGE)/namazurc" is read first though "namazu.cgi" > doesn't read "namazrurc" of the same directory. I understand this. I said so in my prior post. Another confusing thing in the manual is this: "If more than one configuration file is found, all of the files are loaded." If there are conflicting settings in the three possible namazurc and .namazurc files, which takes precedence, the first loaded or the last loaded? Of course I can test it, but IMO the documentation should save the user the effort and say: "If there are conflicting settings in the namazu configuration files, the first configuration file loaded applies," or "If there are conflicting settings in the namazu configuration files, the last configuration file loaded applies," whichever is correct. Again, thank you for your help. Now, I'm trying to understand why sorting by date appears not to work correctly with files created with MHonArc and indexed with mknmz with the --mhonarc option. -rex From yw3t-trns at asahi-net.or.jp Tue Apr 10 15:04:33 2007 From: yw3t-trns at asahi-net.or.jp (Tadamasa Teranishi) Date: Tue Apr 10 15:05:00 2007 Subject: [Namazu-users-en] Re: [ (can't open the index) ]] (Solved!) References: <20070409070103.GB32634@x2.nosyntax.com> <4619F099.E45AE69D@asahi-net.or.jp> <20070409224332.GK32634@x2.nosyntax.com> <461AF771.6C0CCFFF@asahi-net.or.jp> <20070410052938.GO32634@x2.nosyntax.com> Message-ID: <461B28F1.25456EE3@asahi-net.or.jp> rex wrote: > > > You should read the manual. see doc/en/manual.html. > > The directions in the namazu-sample are not consistent with the > directions in the manual. How is the reader to know which is correct? No. Because namazurc-sample (It is not namazu-sample.) is installed in "$(sysconfdir)/$(PACKAGE)/". "namazurc-sample" is copied onto "namazurc" by the directory of "$(sysconfdir)/$(PACKAGE)/". This becomes RC file read the first so. ("$(sysconfdir)/$(PACKAGE)/namazurc") A minimum setting is completed by this. It is not indispensable to put the RC file on the same directory as "namazu.cgi". ".namazurc" is needed for the first time in the same directory as "namazu.cgi" so that only CGI may change the setting. > Wouldn't it be wise to make the information in namazu-sample clear? It is certain not to have enhanced the document. However, if the manual is read, it understands. > For example: > > Do at least one of these three things: > > 1) Copy namazu-sample -> ~/.namazurc > (Necessary to run namazu as a user) > > 2) Copy namazu-sample -> .namazurc in the directory where namazu.cgi is located > (This or the step below is necessary for namazu.cgi) > > 3) Copy namazu-sample -> $(sysconfdir)/$(PACKAGE)/namazurc > (Usually, /usr/local/etc/namazu/namazurc) This is not correct. # Perhaps, it is not likely to be able to understand still correctly. However, after it corrects it to a correct content, such a sample might have to be shown. > Another confusing thing in the manual is this: > > "If more than one configuration file is found, all of the files are loaded." > > If there are conflicting settings in the three possible namazurc and > .namazurc files, which takes precedence, the first loaded or the last > loaded? Of course I can test it, but IMO the documentation should save > the user the effort and say: "If there are conflicting settings in the > namazu configuration files, the first configuration file loaded applies," > or "If there are conflicting settings in the namazu configuration files, > the last configuration file loaded applies," whichever is correct. I see. As for this, the setting of each item of the RC file is overwrited. (It is not a unit of the file. ) > Now, I'm trying to understand why sorting by date appears not to work > correctly with files created with MHonArc and indexed with mknmz with > the --mhonarc option. Please retrieve the archive of ML of the UTC field sort about the date sorting. The date sorting is sorting of the time of the file of the stamp. It is not because of being sorted in date displayed in the retrieval result the order. -- ===================================================================== TADAMASA TERANISHI yw3t-trns@asahi-net.or.jp http://www.asahi-net.or.jp/~yw3t-trns/index.htm Key fingerprint = 474E 4D93 8E97 11F6 662D 8A42 17F5 52F4 10E7 D14E From atting at literaturlatenight.de Tue Apr 10 18:22:21 2007 From: atting at literaturlatenight.de (henry atting) Date: Wed Apr 11 08:21:38 2007 Subject: [Namazu-users-en] German umlaut Message-ID: <876484shwy.fsf@literaturlatenight.de> Hello, why the german umlauts are not shown in the search results? I set lang to de in /etc/namazurc and run indexing with the --indexing-lang Option set to de, but nothing changes. Normally I do a namazu query (bnamazu) within emacs (all coding setting of emacs-w3m are utf-8). But if I start namazu from the commandline or bnamazu -b iceweasel for instance its the same. What am I missing? Regards henry From yw3t-trns at asahi-net.or.jp Wed Apr 11 10:00:39 2007 From: yw3t-trns at asahi-net.or.jp (Tadamasa Teranishi) Date: Wed Apr 11 10:01:14 2007 Subject: [Namazu-users-en] Re: German umlaut References: <876484shwy.fsf@literaturlatenight.de> Message-ID: <461C3337.6D21FCC7@asahi-net.or.jp> henry atting wrote: > > why the german umlauts are not shown in the search results? Because it doesn't support German as language processing. It has been limited only to the template file to support German. The language processing supported by Namazu is only C(US_ASCII) and Japanese. [US_ASCII] 0x00-0x7f http://www.asahi-net.or.jp/~yw3t-trns/code/iso646.html#iso646-us The area of 0x80-0xff of ISO-8859-1 and ISO-8859-15 is outside the support. [ISO-8859-1] http://www.asahi-net.or.jp/~yw3t-trns/code/iso88591.html [ISO-8859-15] http://www.asahi-net.or.jp/~yw3t-trns/code/iso885915.html > emacs (all coding setting of emacs-w3m are utf-8). But if I start namazu from the UTF-8 is not supported. ================= Support of German ================= * template/NMZ.*.de that rewrites part in German instead of template/NMZ.* (US_ASCII messages) is only prepared. * The po/de.po file is not prepared about German. If po/namazu.pot is translated into German and po/de.pot is made, the message is made German. But, * Only the character of US_ASCII corresponds when the index is made from a German document. (Excluding in the case of special.) This is a specification of Namazu 2.0.X. -- ===================================================================== TADAMASA TERANISHI yw3t-trns@asahi-net.or.jp http://www.asahi-net.or.jp/~yw3t-trns/index.htm Key fingerprint = 474E 4D93 8E97 11F6 662D 8A42 17F5 52F4 10E7 D14E From rex at nosyntax.net Wed Apr 11 13:32:48 2007 From: rex at nosyntax.net (rex) Date: Wed Apr 11 13:32:55 2007 Subject: [Namazu-users-en] Re: [ (can't open the index) ]] (Solved!) In-Reply-To: <461B28F1.25456EE3@asahi-net.or.jp> References: <20070409070103.GB32634@x2.nosyntax.com> <4619F099.E45AE69D@asahi-net.or.jp> <20070409224332.GK32634@x2.nosyntax.com> <461AF771.6C0CCFFF@asahi-net.or.jp> <20070410052938.GO32634@x2.nosyntax.com> <461B28F1.25456EE3@asahi-net.or.jp> Message-ID: <20070411043248.GV32634@x2.nosyntax.com> Tadamasa Teranishi [2007-04-09 23:05]: > rex wrote: > > > > > You should read the manual. see doc/en/manual.html. > > > > The directions in the namazu-sample are not consistent with the > > directions in the manual. How is the reader to know which is correct? > > No. Because namazurc-sample (It is not namazu-sample.) is installed > in "$(sysconfdir)/$(PACKAGE)/". > "namazurc-sample" is copied onto "namazurc" by the directory of > "$(sysconfdir)/$(PACKAGE)/". > > This becomes RC file read the first so. > ("$(sysconfdir)/$(PACKAGE)/namazurc") > > A minimum setting is completed by this. > > It is not indispensable to put the RC file on the same directory > as "namazu.cgi". I know. I prefer to keep config files with the code. > ".namazurc" is needed for the first time in the same directory as > "namazu.cgi" so that only CGI may change the setting. > > > Wouldn't it be wise to make the information in namazu-sample clear? > > It is certain not to have enhanced the document. > However, if the manual is read, it understands. > > > For example: > > > > Do at least one of these three things: > > > > 1) Copy namazu-sample -> ~/.namazurc > > (Necessary to run namazu as a user) > > > > 2) Copy namazu-sample -> .namazurc in the directory where namazu.cgi is located > > (This or the step below is necessary for namazu.cgi) > > > > 3) Copy namazu-sample -> $(sysconfdir)/$(PACKAGE)/namazurc > > (Usually, /usr/local/etc/namazu/namazurc) > > This is not correct. > # Perhaps, it is not likely to be able to understand still correctly. > > However, after it corrects it to a correct content, such a sample > might have to be shown. How about inserting a correct version in namazurc-sample? > > Now, I'm trying to understand why sorting by date appears not to work > > correctly with files created with MHonArc and indexed with mknmz with > > the --mhonarc option. > > Please retrieve the archive of ML of the UTC field sort about the > date sorting. > > The date sorting is sorting of the time of the file of the stamp. > It is not because of being sorted in date displayed in the > retrieval result the order. OK, did that. Details in a new thread. Thanks, -rex From rex at nosyntax.net Wed Apr 11 13:45:50 2007 From: rex at nosyntax.net (rex) Date: Wed Apr 11 13:45:53 2007 Subject: [Namazu-users-en] Fix for odd sorting of search results Message-ID: <20070411044550.GW32634@x2.nosyntax.com> Tadamasa Teranishi [2007-04-09 23:05]: > rex wrote: > > > Now, I'm trying to understand why sorting by date appears not to work > > correctly with files created with MHonArc and indexed with mknmz with > > the --mhonarc option. > > Please retrieve the archive of ML of the UTC field sort about the > date sorting. > > The date sorting is sorting of the time of the file of the stamp. > It is not because of being sorted in date displayed in the > retrieval result the order. After reading the thread I understand what it does, but not why it does that with mbox-type files (especially if they have been converted with MHonArc, which creates a new file with a new time stamp). This is how I fixed it: Added utc to .mknmzrc # $SEARCH_FIELD = "utc|message-id|subject|from|date|uri|newsgroups|to|summary|size"; Added to NMZ.head Ran (as root) mailutime to set all message modification times to time in Date: field. /usr/local/src/namazu-2.0.17/scripts/mailutime /srv/www/htdocs/ffarchive/ff_msgs/* There were many warnings about "...is not rfc822 format! trying fuzzy mode..." The timestamps were changed, but the time order does not match the message order. That's not surprising considering that the messages came from a Yahoogroups list, and messages from them often arrive out of order. ls -alF [...] ... 4948 2007-01-30 20:59 msg01090.html Date: Tue, 30 Jan 2007 23:59:35 EST ... 5119 2007-01-30 21:05 msg01091.html Date: Wed, 31 Jan 2007 00:05:07 EST ... 8411 2007-01-31 06:21 msg01092.html Date: Wed, 31 Jan 2007 06:21:47 -0000 ... 2857 2007-01-31 19:05 msg01093.html Date: Wed, 31 Jan 2007 19:05:38 -0000 ... 4687 2007-01-31 16:55 msg01094.html Date: Wed, 31 Jan 2007 16:55:22 -0800 ... 4848 2007-01-31 18:54 msg01095.html Date: Wed, 31 Jan 2007 18:54:28 -0800 ... 4530 2007-01-31 19:12 msg01096.html Date: Wed, 31 Jan 2007 19:12:59 -0800 ... 3868 2007-01-31 19:16 msg01097.html Date: Wed, 31 Jan 2007 19:16:20 -0800 [...] Also the timestamp does not always match the time in the message. I've manually added the Date line contained in each message above to make it easy to compare them. Looking at the results, it appears the program is adjusting the timestamp to PST (which is my local time). That's good if the program does it correctly. Unfortunately, mailutime does not recurse into subdirectories, so it was necessary to cd into each month's directory to change the timestamps. Then I created new index files: /srv/www/htdocs/ffarchive/ff_msgs # mknmz -O /tmp/mknmz --mhonarc * It now appears that sorts in chronological and reverse chronological order work correctly. Thanks, -rex From yw3t-trns at asahi-net.or.jp Wed Apr 11 18:58:04 2007 From: yw3t-trns at asahi-net.or.jp (Tadamasa Teranishi) Date: Wed Apr 11 18:58:34 2007 Subject: [Namazu-users-en] Re: Fix for odd sorting of search results References: <20070411044550.GW32634@x2.nosyntax.com> Message-ID: <461CB12C.DC35E051@asahi-net.or.jp> rex wrote: > > After reading the thread I understand what it does, but not why it does > that with mbox-type files (especially if they have been converted with > MHonArc, which creates a new file with a new time stamp). There is not necessarily order of the time stamp of the file made with MHonArc with the date written in contents of the file order because it agrees. a. The date sorting is the order of the file stamp. b. The date of the search result is a date written in contents. Naturally, the result of hope that order is not corresponding because there are two kinds of dates is not obtained. By the way, Two kinds of sorting functions concerning the date are provided. a. Date sorting (default) b. UTC field sorting Please select either from among two. > This is how I fixed it: > > Added utc to .mknmzrc > > # $SEARCH_FIELD = "utc|message-id|subject|from|date|uri|newsgroups|to|summary|size"; Because it is a comment, it is invalid. Under such a condition, the UTC field sorting doesn't function. It is necessary to delete '#'. If the UTC field sorting works, mailutime need not be executed. (It is sorting of the date with the time stamp that mailutime is necessary.) If the UTC field is not used, it is necessary to use mailutime that makes the date of contents a time-stamp on a file. However, it is necessary to execute mailutime every time the time-stamp on a file is changed. > There were many warnings about "...is not rfc822 format! trying fuzzy > mode..." The timestamps were changed, but the time order does > not match the message order. That's not surprising considering that the > messages came from a Yahoogroups list, and messages from them often > arrive out of order. The date might be an illegal straightening. -- ===================================================================== TADAMASA TERANISHI yw3t-trns@asahi-net.or.jp http://www.asahi-net.or.jp/~yw3t-trns/index.htm Key fingerprint = 474E 4D93 8E97 11F6 662D 8A42 17F5 52F4 10E7 D14E From yw3t-trns at asahi-net.or.jp Wed Apr 11 19:32:46 2007 From: yw3t-trns at asahi-net.or.jp (Tadamasa Teranishi) Date: Wed Apr 11 19:33:15 2007 Subject: [Namazu-users-en] Re: German umlaut References: <876484shwy.fsf@literaturlatenight.de> <461C3337.6D21FCC7@asahi-net.or.jp> Message-ID: <461CB94E.4E3E0789@asahi-net.or.jp> The person who can cooperate in the translation of German is requesting it. Tadamasa Teranishi wrote: > > ================= > Support of German > ================= > > * template/NMZ.*.de that rewrites part in German instead of > template/NMZ.* (US_ASCII messages) is only prepared. The following two files are not translated now. template/NMZ.body.de template/NMZ.tips.de Please make "NMZ.*.de" from "NMZ.*" referring to "NMZ.*.fr". > * The po/de.po file is not prepared about German. > If po/namazu.pot is translated into German and po/de.pot is made, > the message is made German. po/de.po Please make "de.po" from "namazu.pot" referring to "fr.po". Web that uses translated Namazu for German has here. http://bolug.uni-bonn.de/suchen/index.html -- ===================================================================== TADAMASA TERANISHI yw3t-trns@asahi-net.or.jp http://www.asahi-net.or.jp/~yw3t-trns/index.htm Key fingerprint = 474E 4D93 8E97 11F6 662D 8A42 17F5 52F4 10E7 D14E