FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Comp.lang.php group question
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Comp.lang.php group question [message #170448 is a reply to message #170444] Mon, 01 November 2010 16:57 Go to previous messageGo to previous message
Sherm Pendley is currently offline  Sherm Pendley
Messages: 33
Registered: September 2010
Karma:
Member
"Beauregard T. Shagnasty" <a(dot)nony(dot)mous(at)example(dot)invalid> writes:

> Sherm Pendley wrote:
>
>> "Beauregard T. Shagnasty" writes:
>>> Yup. YW. I learned it from a poster in n.s.r a couple years ago. I've
>>> forgotten whom. There'll be a list somewhere of which header fields
>>> are and are not included in 'header fetch' but it's too dark yet
>>> this morning to go googling...
>>
>> No need - I assume it's in the relevant RFCs, and I know where to
>> find those. :-)
>
> Here: http://tools.ietf.org/html/rfc1036

That defines the format of messages, not the NNTP protocol; for the
latter, the current RFC is 3977:

<http://tools.ietf.org/html/rfc3977>

> <quote>
> The required header lines are "From", "Date", "Newsgroups", "Subject",
> "Message-ID", and "Path".
>
> The optional header lines are "Followup-To", "Expires", "Reply-To",
> "Sender", "References", "Control", "Distribution", "Keywords",
> "Summary", "Approved", "Lines", "Xref", and "Organization".
> </quote>

That's a list of what headers are required to be in a message, not the
ones that must be returned by the NNTP OVER command. Section 8.3.2 of
RFC3977 lists the latter:

"0" or article number (see below)
Subject header content
From header content
Date header content
Message-ID header content
References header content
:bytes metadata item
:lines metadata item

Note that the above list is different from that given in 1036 - it
includes References, but not Newsgroups or Path. Even so, Organization
isn't in either list, so that difference is academic.

It gets more interesting though; filtering on a field that's not in the
above list *still* doesn't necessarily require fetching a full article.
If the server supports the optional HDR (Section 8.5) command, that
can be used to fetch a single header field for one or more articles. A
client that wants to use that can use the LIST HEADERS (Section 8.6)
command to see what headers can be fetched by the HDR command.

So, a sufficiently-intelligent client that's connected to a sufficiently-
advanced server could, upon finding a filter that uses a header that's
not returned by the OVER command, use a HDR command to fetch the
additional header fields it needs.

The question then becomes whether a given client is smart enough to
do so, and whether the server to which it's connected supports the
optional commands it would need to do so.

Nothing is *ever* as simple as it seems, is it? :-)

sherm--

--
Sherm Pendley
<http://camelbones.sourceforge.net>
Cocoa Developer
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: PHP (PHP Hypertext Preprocessor) Programming is Similar to C ...
Next Topic: Spam
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Nov 27 03:04:05 GMT 2024

Total time taken to generate the page: 0.05950 seconds