Thread View: news.software.readers
6 messages
6 total messages
Started by frag
Wed, 13 Jan 2010 22:04
Language for the month desc in Headers?
Author: frag
Date: Wed, 13 Jan 2010 22:04
Date: Wed, 13 Jan 2010 22:04
12 lines
1362 bytes
1362 bytes
As per subject. Should the language of the month name in the date string in NNTP headers always be in English? (not what the RFCs say, I know that, but what is generally accepted custom?) -- frag MicroPlanet Gravity Newsreader V2.9 http://mpgravity.sourceforge.net/
Re: Language for the month desc in Headers?
Author: Shmuel Metz
Date: Fri, 15 Jan 2010 13:25
Date: Fri, 15 Jan 2010 13:25
33 lines
3028 bytes
3028 bytes
In <MPG.25b853a863a9cf1d9897cf@server>, on 01/13/2010
at 10:04 PM, frag <news4@ukrm.co.uk> said:
>Should the language of the month name in the date string in NNTP headers
>always be in English?
>(not what the RFCs say, I know that, but what is generally accepted
>custom?)
I can't speak to generally accepted custom, but The RFC's specify that
both the month name and the day of the week be specific strings. The
Netnews RFC's refer to the message RFC's, of which the most recent is RFC
5322.
Also, "3.5. Duties of an Injecting Agent" in RFC 5537 says
2. It MUST reject any proto-article that does not have the proper
mandatory header fields for a proto-article, that has Injection-
Info or Xref header fields, that has a Path header field
containing the "POSTED" <diag-keyword>, or that is not
syntactically valid as defined by [RFC5536].
So while you may have gotten away with it in the RFC 1036 era, you should
expect problems as servers start conforming to RFC 5536 and RFC 5537.
--
Shmuel (Seymour J.) Metz, SysProg and JOAT <http://patriot.net/~shmuel>
Unsolicited bulk E-mail subject to legal action. I reserve the
right to publicly post or ridicule any abusive E-mail. Reply to
domain Patriot dot net user shmuel+news to contact me. Do not
reply to spamtrap@library.lspace.org
Re: Language for the month desc in Headers?
Author: Tom B.
Date: Sat, 16 Jan 2010 15:55
Date: Sat, 16 Jan 2010 15:55
42 lines
2826 bytes
2826 bytes
Shmuel (Seymour J.) Metz wrote in "news.software.readers" ... > > In <MPG.25b853a863a9cf1d9897cf@server>, on 01/13/2010 > at 10:04 PM, frag <news4@ukrm.co.uk> said: > > >Should the language of the month name in the date string in NNTP headers > >always be in English? > > >(not what the RFCs say, I know that, but what is generally accepted > >custom?) > > I can't speak to generally accepted custom, but The RFC's specify that > both the month name and the day of the week be specific strings. The > Netnews RFC's refer to the message RFC's, of which the most recent is RFC > 5322. > > Also, "3.5. Duties of an Injecting Agent" in RFC 5537 says > > 2. It MUST reject any proto-article that does not have the proper > mandatory header fields for a proto-article, that has Injection- > Info or Xref header fields, that has a Path header field > containing the "POSTED" <diag-keyword>, or that is not > syntactically valid as defined by [RFC5536]. > > So while you may have gotten away with it in the RFC 1036 era, you should > expect problems as servers start conforming to RFC 5536 and RFC 5537. We aren't trying to post it, we are trying to handle it. A user reported Gravity crashing downloading headers in one newsgroup. When frag ran it through the debugger an article had a non-standard date header with accented chars in the month name. Aside from beefing up Gravity's error handling, we just wondered how much it happens. My guess is not much because this is the first time this error was reported that I know of. Thanks for the help. -- Tom B. * * * Gravity Web Pages * * * http://mpgravity.sourceforge.net/ (official site) http://gravity.tbates.org/
Re: Language for the month desc in Headers?
Author: Shmuel Metz
Date: Sun, 17 Jan 2010 00:33
Date: Sun, 17 Jan 2010 00:33
21 lines
2500 bytes
2500 bytes
In <MPG.25bbab64fcb54249989698@news.individual.net>, on 01/16/2010 at 10:55 AM, "Tom B." <nfn03862@naples.net> said: >We aren't trying to post it, we are trying to handle it. How do you handle other syntax errors? What would you do with, e.g., the following: Date: Sat, 16 Jan 2010 19:30:40 -05O0 My take is that if the field is bad then you should flag it and not try to parse any useful information out of it. -- Shmuel (Seymour J.) Metz, SysProg and JOAT <http://patriot.net/~shmuel> Unsolicited bulk E-mail subject to legal action. I reserve the right to publicly post or ridicule any abusive E-mail. Reply to domain Patriot dot net user shmuel+news to contact me. Do not reply to spamtrap@library.lspace.org
Re: Language for the month desc in Headers?
Author: Patrick Lamaizière
Date: Sun, 17 Jan 2010 10:22
Date: Sun, 17 Jan 2010 10:22
13 lines
2105 bytes
2105 bytes
Tom B. : > We aren't trying to post it, we are trying to handle it. A user > reported Gravity crashing downloading headers in one newsgroup. > When frag ran it through the debugger an article had a non-standard > date header with accented chars in the month name. Aside from > beefing up Gravity's error handling, we just wondered how much it > happens. My guess is not much because this is the first time this > error was reported that I know of. I guess that the news-server should reject the article. INN does it if it can't parse the date header.
Re: Language for the month desc in Headers?
Author: Tom B.
Date: Sun, 17 Jan 2010 15:28
Date: Sun, 17 Jan 2010 15:28
25 lines
2045 bytes
2045 bytes
Patrick Lamaizière wrote in "news.software.readers" ... > > Tom B. : > > > We aren't trying to post it, we are trying to handle it. A user > > reported Gravity crashing downloading headers in one newsgroup. > > When frag ran it through the debugger an article had a non-standard > > date header with accented chars in the month name. Aside from > > beefing up Gravity's error handling, we just wondered how much it > > happens. My guess is not much because this is the first time this > > error was reported that I know of. > > I guess that the news-server should reject the article. > INN does it if it can't parse the date header. Sounds like the server should. But I guess some don't. We just didn't want Gravity giving up the ship on the occasional article that might get through. Frag already tweaked that part of the error handling for the next build. -- Tom B. * * * Gravity Web Pages * * * http://mpgravity.sourceforge.net/ (official site) http://gravity.tbates.org/
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads