LoginHomeBugs & FeaturesDocumentationDownloadForums

STR #21

Status:4 - Pending
Priority:3 - Moderate, e.g. unable to compile the software
Scope:3 - Applies to all machines and operating systems
Subsystem:Multiple
Summary:XPAT needs to be supported [message search]
Version:1.44rc4
Created By:erco
Assigned To:erco
Fix Version:Unassigned
Update Notification:

Receive EMails Don't Receive EMails


Trouble Report Files:

Post File

No files


Trouble Report Dialog:

Post Text

Name/Time/DateText
erco
22:08 May 21, 2006
newsd fails with 'unknown command' when doing a search
operation [Edit|Find|Search Messages] in Firefox. For instance,
searching the Subject for the string "OSX":

newsd[25668]: GOT: MODE READER
newsd[25668]: GOT: GROUP rush.general
newsd[25668]: GOT: XPAT SUBJECT  1- *[Oo][Ss][Xx]*
                   ^^^^

The XPAT function [RFC-2980 2.9.0] needs to be implemeted.
mike
10:36 Mar 29, 2009


STR #24 also covers this; making this the master as it came first:

Implement the XPAT NNTP command, eg:

    XPAT header range|<message-id> pat [pat...]

See these relevant sections for implementation:

RFC#    Section   Command        Description
----    -------   ---------      ------------------------------------
2980    2.9       XPAT           Command newsreaders invoke to search
2980    3.3       WILDMAT        Format of XPAT's 'pat' argument
1036    2.[12]    (Headers)      Format of XPAT's 'header' argument

This can probably be implemented into the 1.x stream.

At minimum, implement as a global search on the message text, stopping at the end of the headers, or go the extra step of having newsd create a single 'headers' cache file, so that searches on the headers can be done with as low impact on the server's cpu as possible.

If the cache file approach is taken, make a simple newsd command line option that makes it easy to regenerate the cache files if corrupted, or when upgrading existing newsgroups. eg:

    newsd -recache newsgroup|* [newsgroup..]

I highly advise making the cache files pure ascii, so that they can be easily inspected for corruption. Design of the file format should probably be optimized for XPAT's specific needs.