[Namazu-users-en] Re: Problems with date sorts
fmouse-namazu at fmp.com
Sun Jan 14 11:54:27 JST 2007
Thus spake Tadamasa Teranishi on Sat, Jan 13, 2007 at 08:15:13PM CST
> Though there seems to be a misunderstanding....
> It is a function to sort the sorting function with the time stamp of
> the document file at the date of Namazu.
> This is old to the specification.
Well this gives me something to think about and work with. Thanks. I'll take
a bit if time and dig further for the source of the problem. I have a bit of
difficulty with your English, as you may have with mine. Sorry ;-) I'll
figure it out.
The pipermail files on the server here using namazu were transferred from
another Mailman installation on another server. All of them have a timestamp
on them that is no earlier than the time of this transfer. Some pipermail
archive collections were trimmed and regenerated using Mailman's 'arch'
utility, and their timestamp shows the time they were regenerated.
Furthermore, on my system, mknmz runs as the 'nmz' user which doesn't have
write permission on the pipermail files, so it can't change the timestamps.
Are you telling me that if I allow mknmz to run with write permission on the
Mailman pipermail files, that it will make their Unix timestamps correspond to
the posting dates in them and namazu.cgi sorting will work correctly at run
> Lindsay Haisley wrote:
> > > To begin with, Date of pipermail was not RFC2822 form.
> > > However, Date of pipermail is correctly reflected in the field 'Date'.
> > The pipermail format contains no RFC822 header, but morphs the "Date"
> > header from the original post into an HTML element, and the date format
> > is different from what was in the original message/rfc822 format. This
> > is apparently correctly parsed by mknmz. For instance, the original
> > message contained:
> Yes. Though it becomes a repetition...
> Date of pipermail was not RFC2822 originally form.
> However, mknmz(filter/pipermail.pl) correctly reflects Date of
> pipermail in the Date field.
> Only when usually displaying it in the retrieval result,
> the Date field is used.
> > > Then, let's examine the time stamp of pipermail file next.
> > > For instance, please confirm the following file and confirm the date
> > > by 'ls -alF'.
> > The Unix time stamp is irrelevant!
> The time stamp of the file is important.
> Because the date sorting is done based on the time stamp.
> > > One is a method of changing the time stamp of the file according
> > > to information on Date of contents of the file.
> > No accessory utility such as namazu should ever make any changes to the
> > data source it's analyzing, even if it's only a matter of changing the
> > Unix time stamp.
> It is a difference in outlook.
> There is mailutime command in the utility of Namazu.
> mailutime is a tool to set timestamps of Mail/News files to the Date:
> (However, mailutime doesn't correspond to pipermail.)
> > > Another one is a method of using the field sorting UTC function.
> > > Do you know the method of setting the field sorting UTC function?
> > I'm not familiar with the field sorting UTC function. What does namazu
> > use, and where in the code is the sorting done?
> Namazu also provides the function to use the value of the field as a
> key to sorting.
> And, sorting by specifying the UTC field for a key to sorting in date
> displayed in the retrieval result the order becomes possible.
> Perhaps, the purpose will be able to be accomplished by using the
> UTC field sorting.
> Method of using UTC sorting function:
> 1. "utc" is added to $SEARCH_FIELD of .mknmzrc.
> 2. NMZ.head is edited.
> <option value="date:late">by date in late order</option>
> <option value="date:early">by date in early order</option>
> <option value="field:utc:descending">by date in early order</option>
> <option value="field:utc:ascending">by date in late order</option>
> 3. It tries to delete the index, and to make it newly.
> > Are you one of the authors of namazu?
> Yes. See CREDITS, ChangeLog, etc...
> * As for tarball since Namazu 2.0.13, what I signed is distributed.
> * filter/pipermail.pl is what there is a file that became a radical
> I made.
> * It is I that added the UTC field sorting function.
> TADAMASA TERANISHI yw3t-trns at asahi-net.or.jp
> Key fingerprint = 474E 4D93 8E97 11F6 662D 8A42 17F5 52F4 10E7 D14E
> Namazu-users-en mailing list
> Namazu-users-en at namazu.org
Lindsay Haisley | "Fighting against human | PGP public key
FMP Computer Services | creativity is like | available at
512-259-1190 | trying to eradicate | <http://pubkeys.fmp.com>
http://www.fmp.com | dandelions" |
| (Pamela Jones) |
More information about the Namazu-users-en