Thread View: news.software.nntp
15 messages
15 total messages
Started by Johnson Lau
Sun, 24 Mar 2002 13:43
[inn2] Can I overrid the "Date" in header?
Author: Johnson Lau
Date: Sun, 24 Mar 2002 13:43
Date: Sun, 24 Mar 2002 13:43
5 lines
1129 bytes
1129 bytes
I want to make the "Date" of all incoming posts follow the server's clock. What can I do? Thanks.
Re: [inn2] Can I overrid the "Date" in header?
Author: Andrew Gierth
Date: Sun, 24 Mar 2002 15:56
Date: Sun, 24 Mar 2002 15:56
16 lines
1563 bytes
1563 bytes
>>>>> "Johnson" == Johnson Lau <johnson@siukeung.com> writes: Johnson> I want to make the "Date" of all incoming posts follow the Johnson> server's clock. no, you don't. The Date header of an article is not merely cosmetic but is one of the most important headers of the article for transport purposes: the Date and Message-ID headers form the mechanism that prevents articles from getting into infinite loops between servers. Modifying either of them is an absolute no-no. -- Andrew.
Re: [inn2] Can I overrid the "Date" in header?
Author: Jeffrey M. Vinocur
Date: Sun, 24 Mar 2002 16:08
Date: Sun, 24 Mar 2002 16:08
13 lines
1357 bytes
1357 bytes
In article <a7kl6g$mtt$1@justice.csc.cuhk.edu.hk>, Johnson Lau <johnson@siukeung.com> wrote: >I want to make the "Date" of all incoming posts follow the server's clock. >What can I do? Thanks. There's no easy way to do this. You may be able to do it in the posting filter (see README.perl_hook in 2.3.2), though. -- Jeffrey M. Vinocur jeff@litech.org
Re: [inn2] Can I overrid the "Date" in header?
Author: Jeffrey M. Vinocur
Date: Sun, 24 Mar 2002 16:09
Date: Sun, 24 Mar 2002 16:09
23 lines
1792 bytes
1792 bytes
In article <87wuw22c4t.fsf@erlenstar.demon.co.uk>, Andrew Gierth <andrew@erlenstar.demon.co.uk> wrote: >>>>>> "Johnson" == Johnson Lau <johnson@siukeung.com> writes: > > Johnson> I want to make the "Date" of all incoming posts follow the > Johnson> server's clock. > >no, you don't. > >The Date header of an article is not merely cosmetic but is one of the >most important headers of the article for transport purposes: the Date >and Message-ID headers form the mechanism that prevents articles from >getting into infinite loops between servers. Modifying either of them >is an absolute no-no. In transit, certainly. He can modify them during POST, though, no? It sounds like that's what he wants to do. -- Jeffrey M. Vinocur jeff@litech.org
Re: [inn2] Can I overrid the "Date" in header?
Author: A Meowbot
Date: Sun, 24 Mar 2002 16:12
Date: Sun, 24 Mar 2002 16:12
14 lines
1678 bytes
1678 bytes
Jeffrey M. Vinocur wrote: > Andrew Gierth <andrew@erlenstar.demon.co.uk> wrote: > >The Date header of an article is not merely cosmetic but is one of the > >most important headers of the article for transport purposes: the Date > >and Message-ID headers form the mechanism that prevents articles from > >getting into infinite loops between servers. Modifying either of them > >is an absolute no-no. > In transit, certainly. He can modify them during POST, though, > no? No. Consider suck/rpost feeding.
Re: [inn2] Can I overrid the "Date" in header?
Author: Johnson Lau
Date: Sun, 24 Mar 2002 16:20
Date: Sun, 24 Mar 2002 16:20
24 lines
2081 bytes
2081 bytes
"A Meowbot" <53ab2750@meowing.net> ���g��l��s�D :MPG.1707c50a9bb9fb77989687@news.verizon.net... > Jeffrey M. Vinocur wrote: > > > Andrew Gierth <andrew@erlenstar.demon.co.uk> wrote: > > >The Date header of an article is not merely cosmetic but is one of the > > >most important headers of the article for transport purposes: the Date > > >and Message-ID headers form the mechanism that prevents articles from > > >getting into infinite loops between servers. Modifying either of them > > >is an absolute no-no. > > > In transit, certainly. He can modify them during POST, though, > > no? > > No. Consider suck/rpost feeding. but i only have local newsgroups and won't suck or feed with other servers actually, the function i mentioned is availible in dnews. however, for some reasons, i can't use dnews now.
Re: [inn2] Can I overrid the "Date" in header?
Author: Johnson Lau
Date: Sun, 24 Mar 2002 17:18
Date: Sun, 24 Mar 2002 17:18
26 lines
1857 bytes
1857 bytes
i know i have to modify some codes. However, I don't know where should i do it. it seems that the filter only rejects unwanted articles, but is not able to change the content, am i correct? "Jeffrey M. Vinocur" <jeff@litech.org> ���g��l��s�D :a7ktm3$to3$1@marduk.litech.org... > In article <a7kl6g$mtt$1@justice.csc.cuhk.edu.hk>, > Johnson Lau <johnson@siukeung.com> wrote: > >I want to make the "Date" of all incoming posts follow the server's clock. > >What can I do? Thanks. > > There's no easy way to do this. You may be able to do it in the > posting filter (see README.perl_hook in 2.3.2), though. > > > -- > Jeffrey M. Vinocur > jeff@litech.org
Re: [inn2] Can I overrid the "Date" in header?
Author: Andrew Gierth
Date: Sun, 24 Mar 2002 17:27
Date: Sun, 24 Mar 2002 17:27
28 lines
2185 bytes
2185 bytes
>>>>> "Jeffrey" == Jeffrey M Vinocur <jeff@litech.org> writes: >> The Date header of an article is not merely cosmetic but is one of >> the most important headers of the article for transport purposes: >> the Date and Message-ID headers form the mechanism that prevents >> articles from getting into infinite loops between >> servers. Modifying either of them is an absolute no-no. Jeffrey> In transit, certainly. He can modify them during POST, Jeffrey> though, no? Modifying date headers on POST has been (and probably still is) a recurring source of spews (Typhoon being the major offender in this respect). Too many people are doing suck/rpost for it to be safe. Even on an isolated private server, what about people who do suck/rpost in order to read the articles locally? The same potential for article spews exists. Jeffrey> It sounds like that's what he wants to do. The problem is that what he wants to do is a misuse of the Date header - if you want to know the time the article was actually posted, then look at the X-Trace instead. -- Andrew.
Re: [inn2] Can I overrid the "Date" in header?
Author: Jeffrey M. Vinocur
Date: Sun, 24 Mar 2002 18:15
Date: Sun, 24 Mar 2002 18:15
24 lines
1768 bytes
1768 bytes
In article <a7l1on$c0f$1@justice.csc.cuhk.edu.hk>,
Johnson Lau <johnson@siukeung.com> wrote:
>
> [ nnrpd posting filter ]
>
>it seems that the filter only rejects unwanted articles,
>but is not able to change the content,
>am i correct?
From README.perl_hook:
Unlike the innd Perl filter, the nnrpd Perl filter can modify the %hdr
hash. In fact, if the Perl variable $modify_headers is set to true
after filter_post() returns, the contents of the %hdr hash will be
written back to the article replacing the original headers.
But please see the other comments in this thread and make sure
this is really what you need to do.
--
Jeffrey M. Vinocur
jeff@litech.org
Re: [inn2] Can I overrid the "Date" in header?
Author: Jeffrey M. Vinocur
Date: Sun, 24 Mar 2002 18:16
Date: Sun, 24 Mar 2002 18:16
15 lines
1472 bytes
1472 bytes
In article <a7l535$22i$1@marduk.litech.org>, Jeffrey M. Vinocur <jeff@litech.org> wrote: > >But please see the other comments in this thread and make sure >this is really what you need to do. Is there a reason you can't just reject posts with a bad date, and get people to fix their clocks? Then there would be no danger. -- Jeffrey M. Vinocur jeff@litech.org
Re: [inn2] Can I overrid the "Date" in header?
Author: Johnson Lau
Date: Sun, 24 Mar 2002 18:29
Date: Sun, 24 Mar 2002 18:29
14 lines
1696 bytes
1696 bytes
Since i'm maintaining a private server, the problem you mentioned would only affect my server and users even in the worst case. Thanks very much for your opinion. "Andrew Gierth" <andrew@erlenstar.demon.co.uk> ���g��l��s�D :87g02p3mga.fsf@erlenstar.demon.co.uk... > Even on an isolated private server, what about people who do > suck/rpost in order to read the articles locally? The same potential > for article spews exists.
Re: [inn2] Can I overrid the "Date" in header?
Author: Johnson Lau
Date: Sun, 24 Mar 2002 19:15
Date: Sun, 24 Mar 2002 19:15
19 lines
1804 bytes
1804 bytes
"Jeffrey M. Vinocur" <jeff@litech.org> ���g��l��s�D :a7l550$22i$2@marduk.litech.org... > In article <a7l535$22i$1@marduk.litech.org>, > Jeffrey M. Vinocur <jeff@litech.org> wrote: > > > >But please see the other comments in this thread and make sure > >this is really what you need to do. > > Is there a reason you can't just reject posts with a bad date, > and get people to fix their clocks? Then there would be no > danger. I have done it. Thank you. Since I'm maintaining a private server, any problem should only affect my users.
Re: [inn2] Can I overrid the "Date" in header?
Author: Johnson Lau
Date: Mon, 25 Mar 2002 07:00
Date: Mon, 25 Mar 2002 07:00
25 lines
1973 bytes
1973 bytes
test "Johnson Lau" <johnson@siukeung.com> ���g��l��s�D :a7l8kn$l1c$1@justice.csc.cuhk.edu.hk... > > "Jeffrey M. Vinocur" <jeff@litech.org> ���g��l��s�D > :a7l550$22i$2@marduk.litech.org... > > In article <a7l535$22i$1@marduk.litech.org>, > > Jeffrey M. Vinocur <jeff@litech.org> wrote: > > > > > >But please see the other comments in this thread and make sure > > >this is really what you need to do. > > > > Is there a reason you can't just reject posts with a bad date, > > and get people to fix their clocks? Then there would be no > > danger. > > I have done it. Thank you. > Since I'm maintaining a private server, any problem should only affect my > users. > >
Re: [inn2] Can I overrid the "Date" in header?
Author: Jeffrey M. Vinocur
Date: Mon, 25 Mar 2002 13:50
Date: Mon, 25 Mar 2002 13:50
11 lines
1352 bytes
1352 bytes
In article <a7mhu3$51o$1@justice.csc.cuhk.edu.hk>, Johnson Lau <johnson@siukeung.com> wrote: >test Please try a test group, such as misc.test, for this. -- Jeffrey M. Vinocur jeff@litech.org
Re: [inn2] Can I overrid the "Date" in header?
Author: Johnson Lau
Date: Mon, 25 Mar 2002 13:51
Date: Mon, 25 Mar 2002 13:51
17 lines
1625 bytes
1625 bytes
sorry, i found that i can't post to this group previously "Jeffrey M. Vinocur" <jeff@litech.org> ���g��l��s�D :a7n9v0$ska$1@marduk.litech.org... > In article <a7mhu3$51o$1@justice.csc.cuhk.edu.hk>, > Johnson Lau <johnson@siukeung.com> wrote: > >test > > Please try a test group, such as misc.test, for this. > > > -- > Jeffrey M. Vinocur > jeff@litech.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