Article View: news.software.nntp
Article #65732Re: Fetching articles by message-id
From: Ken Murchison
Date: Fri, 13 Jun 2003 00:19
Date: Fri, 13 Jun 2003 00:19
57 lines
3432 bytes
3432 bytes
Jeffrey M. Vinocur wrote: > In article <3EE8755A.9070605@oceana.com>, > Ken Murchison <ken@oceana.com> wrote: > >> In order to make NNTP clients happy, does a server have to keep a >>record of the message-ids for as long as the articles remain in the >>group? Or is it possible to expire/purge the message-id entries after >>some period of time, say 30 days? > > > I'm curious what your motivation is here, since purging by time > is probably more complex to code. I think the usual concern is > trying to get a lookup structure of some sort to all fit in > memory at once, but is that necessarily a problem for you? Purging by time isn't really a problem and the lookup structure doesn't have to fit in memory (its a berkeley DB). Here's the issue: Cyrus IMAP (v2.2) now has an NNTP server which can serve up any shared mailbox in its store. These mailboxes can contain anything from newsgroups, to a shared supportdesk folder to mailing list archives. Cyrus keeps track of every incoming message-id in a database which is used for preventing duplicate messages from being delivered into a mailbox. The entries in this database are typically purged after they have "aged" by 3 days or so. I'm using this same database for locating messages when an NNTP client tries to fetches one by message-id (the database maps message-id to mailbox & UID). For those entries which correspond to a message being served by NNTP, they are kept around as long as the message is in the mailstore. For newsgroup mailboxes, this is normal behavior and isn't a problem because most newsgroups (and the corresponding DB entries) are usually expired within 7-14 days. In the case of a mailing list archive (eg, the Cyrus mailing list archived at CMU), the messages are never expired. This means that in order to maintain the message-id mapping for this "newsgroup", the database would currently contain 20K+ entries just for the one mailbox. So the gist of my request was to find out what would break in an NNTP client if I purged the DB entries after 30 days or so. I get the feeling that it wouldn't be a catastrophic problem, and the client could probably generate the threads by other means. -- Kenneth Murchison Oceana Matrix Ltd. Software Engineer 21 Princeton Place 716-662-8973 x26 Orchard Park, NY 14127 --PGP Public Key-- http://www.oceana.com/~ken/ksm.pgp
Technical Details
Message-ID:
<3EE9189D.4090500@oceana.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-peer1.sprintlink.net!news.sprintlink.net!bogey.oceana.com!eagle.oceana.com!kenReferences:
<3EE8755A.9070605@oceana.com> <bcaudl$pas$2@puck.litech.org>Show Full Headers
Complete Article Headers
Message-ID: <3EE9189D.4090500@oceana.com> Subject: Re: Fetching articles by message-id Date: Thu, 12 Jun 2003 20:19:41 -0400 From: Ken Murchison <ken@oceana.com> References: <3EE8755A.9070605@oceana.com> <bcaudl$pas$2@puck.litech.org> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-peer1.sprintlink.net!news.sprintlink.net!bogey.oceana.com!eagle.oceana.com!ken Organization: Oceana Matrix Ltd. User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02 X-Accept-Language: en,pdf MIME-Version: 1.0 Newsgroups: news.software.nntp Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Lines: 56