Thread View: news.software.nntp
3 messages
3 total messages
Started by ABS
Tue, 08 Oct 2002 17:38
Realistic length of message-id
Author: ABS
Date: Tue, 08 Oct 2002 17:38
Date: Tue, 08 Oct 2002 17:38
13 lines
1139 bytes
1139 bytes
Hi! I am creating a gateway to import messages into a database. How many characters should I allow for the Message-ID's? I was going to create an MD5 hash of each Message-ID's, but the possibility of collision is steering me away from that. Thanks in advance for any constructive answer! Cheers, -- ABS
Re: Realistic length of message-id
Author: Andrew - Supernews
Date: Tue, 08 Oct 2002 18:00
Date: Tue, 08 Oct 2002 18:00
32 lines
2204 bytes
2204 bytes
In article <f6c487f3.0210080938.7e6f91f2@posting.google.com>, ABS wrote: > Hi! > > I am creating a gateway to import messages into a database. How many > characters should I allow for the Message-ID's? the limit is 250 including the <>. You should of course deal gracefully with received IDs that are longer than that (just dropping the articles on the floor is good enough). Almost all message-ids are much shorter than that of course. > I was going to create > an MD5 hash of each Message-ID's, but the possibility of collision is > steering me away from that. the probability of collision is low enough not to worry about, unless you're planning an archive of thousands of years worth of traffic, and preserving every single article was important to you. (If you stored about 10 trillion years of traffic at current levels, you'd have a roughly even chance of no collisions.) FWIW, we use only the MD5 hash of the id internally on our servers. (Last I heard, there were still no known collisions for MD5, although the crypto people are edgy enough about the possibility of _constructed_ collisions for it that it's no longer in favour for secure message digest applications.) -- Andrew, Supernews http://www.supernews.com - individual and corporate NNTP services
Re: Realistic length of message-id
Author: Curt Welch
Date: Tue, 08 Oct 2002 18:54
Date: Tue, 08 Oct 2002 18:54
19 lines
1857 bytes
1857 bytes
avrombay@sville.com (ABS) wrote: > Hi! > > I am creating a gateway to import messages into a database. How many > characters should I allow for the Message-ID's? I was going to create > an MD5 hash of each Message-ID's, but the possibility of collision is > steering me away from that. MD5 is more than enough. The probability of a collision is many many orders of magnatude smaller than the probability that a news article will fail to make it into your database for other reasons. Do you really care that one article every million years fails to make it into your database because of a collison when you are probably missing 100 articles a day for other reasons? -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
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