Thread View: news.software.nntp
10 messages
10 total messages
Started by Ken Murchison
Thu, 12 Jun 2003 12:43
Fetching articles by message-id
Author: Ken Murchison
Date: Thu, 12 Jun 2003 12:43
Date: Thu, 12 Jun 2003 12:43
22 lines
1932 bytes
1932 bytes
Could someone explain to me how fetching by message-id (eg, HEAD/ARTICLE <msgid>) is usually used by clients? What happens if the server no longer has the message-id -> article mapping, but the article itself still exists? Does the client fail to provide a certain functionality, or can it get the info it needs by some other means? I'm trying to figure out how to handle really large IMAP mailboxes (eg, mailing list archive of 20K+ messages) when they are exported via NNTP. 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? TIA, Ken -- 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
Re: Fetching articles by message-id
Author: greg andruk
Date: Thu, 12 Jun 2003 13:15
Date: Thu, 12 Jun 2003 13:15
45 lines
3695 bytes
3695 bytes
Ken Murchison <ken@oceana.com> writes: > Could someone explain to me how fetching by message-id (eg, > HEAD/ARTICLE <msgid>) is usually used by clients? What happens if the > server no longer has the message-id -> article mapping, but the > article itself still exists? Does the client fail to provide a > certain functionality, or can it get the info it needs by some other > means? One common use is for a newsreader's "reconstruct thread" kind of feature. Fetch every ID in the article's references, and their references, yadda yadda. Another example would be newsreaders that list the references in the header pane, and let you click on 'em to read back in time. Yet another use is to "fill in" a group from more than one server. If a reader doesn't have the newsgroups header of an interesting article in advance, ARTICLE <msgid> is really the only way to get it. This can happen, for example, when a thread has had followups set to a different newsgroup, or if a poster simply refers to an article by ID in the text of a message. There are also some very simple newsreading applications, like the one built into Lynx, that always fetch by ID. Ideally, if an article can be read within a group, it should also always be available by ID. > I'm trying to figure out how to handle really large IMAP mailboxes > (eg, mailing list archive of 20K+ messages) when they are exported via > NNTP. 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? Yes, it's a pain to keep a long history, but someone ends up having to do it if large groups are useful. Should the server do it once, or should each client do the work as needed? An incomplete history is broken, but how users end up using the server might make it brokennes that no one cares about. If people end up using Cyrus' NNTP primarily to read mail messages, reading patters may differ enough that an abbreviated history goes unnoticed. I'm sure you'll hear about it soon enough if you guess the wrong way =)
Re: Fetching articles by message-id
Author: Russ Allbery
Date: Thu, 12 Jun 2003 16:16
Date: Thu, 12 Jun 2003 16:16
41 lines
2753 bytes
2753 bytes
Ken Murchison <ken@oceana.com> writes:
> Could someone explain to me how fetching by message-id (eg, HEAD/ARTICLE
> <msgid>) is usually used by clients?
The most frequent uses that I'm aware of are in conjunction with NEWNEWS
and to chase articles mentioned in References when walking back up a
thread. Occasionally people will also post URLs or other references to
particular articles and most news readers that I've used have a "retrieve
article by message ID" command.
> What happens if the server no longer has the message-id -> article
> mapping, but the article itself still exists? Does the client fail to
> provide a certain functionality, or can it get the info it needs by some
> other means?
It will fail to provide certain functionality. For example, it may not be
able to walk up a thread to the parent of the current article, since that
article may have already been read (and therefore not in the range of
articles for which the client already downloaded overview information).
> I'm trying to figure out how to handle really large IMAP mailboxes (eg,
> mailing list archive of 20K+ messages) when they are exported via
> NNTP. 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?
That's the traditional implementation.
> Or is it possible to expire/purge the message-id entries after some
> period of time, say 30 days?
Some of the Highwind products do this, and people complain about that with
some regularity on this group.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Fetching articles by message-id
Author: Jeffrey M. Vinocur
Date: Thu, 12 Jun 2003 22:21
Date: Thu, 12 Jun 2003 22:21
15 lines
1550 bytes
1550 bytes
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?
Re: Fetching articles by message-id
Author: 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
Re: Fetching articles by message-id
Author: Jeffrey M. Vinocur
Date: Fri, 13 Jun 2003 03:25
Date: Fri, 13 Jun 2003 03:25
29 lines
2146 bytes
2146 bytes
In article <3EE9189D.4090500@oceana.com>, Ken Murchison <ken@oceana.com> wrote: > >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. Ah. Well, nothing will catastrophically break, and day-to-day operations will be fine. But if these are technical sorts of mailing lists, in which people might direct someone to an old article by Message-ID, then it'd be nice for clicking on such links (some clients do provide them) to work. I'd recommend at least making it admin-configurable if possible, so sites can adjust it to their needs. -- Jeffrey M. Vinocur jeff@litech.org
Re: Fetching articles by message-id
Author: Russ Allbery
Date: Fri, 13 Jun 2003 03:28
Date: Fri, 13 Jun 2003 03:28
20 lines
1846 bytes
1846 bytes
Ken Murchison <ken@oceana.com> writes:
> 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.
That's just a MB or so, quite a bit less than the total size of the
mailbox, and given that it's a BerkeleyDB file, it shouldn't be
particularly slow to query. I'd just keep it all if you can.
History files on news servers routinely contain tens of millions of
entries.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Fetching articles by message-id
Author: J.B. Moreno
Date: Fri, 13 Jun 2003 03:40
Date: Fri, 13 Jun 2003 03:40
18 lines
1691 bytes
1691 bytes
In article <3EE9189D.4090500@oceana.com>, Ken Murchison <ken@oceana.com> wrote: -snip- > 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. That depends -- if none of the articles in the thread are older than 30 days, everything will be fine. If there are older articles, then it'll be a problem for most online newsreaders. Not in "generating" a thread, but in retrieving the older articles. -- J.B. Moreno
Re: Fetching articles by message-id
Author: Joe Greco
Date: Sun, 13 Jul 2003 09:29
Date: Sun, 13 Jul 2003 09:29
21 lines
2039 bytes
2039 bytes
In news.software.nntp article <87n0gmy7ul.fsf@windlord.stanford.edu>, Russ Allbery <rra@stanford.edu> wrote: :Ken Murchison <ken@oceana.com> writes: : :> 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. : :That's just a MB or so, quite a bit less than the total size of the :mailbox, and given that it's a BerkeleyDB file, it shouldn't be :particularly slow to query. I'd just keep it all if you can. : :History files on news servers routinely contain tens of millions of :entries. ... on transit servers. It isn't too unusual to see a spool server with a (few) hundred million. ... JG
Re: Fetching articles by message-id
Author: Joe Greco
Date: Sun, 13 Jul 2003 09:33
Date: Sun, 13 Jul 2003 09:33
21 lines
2328 bytes
2328 bytes
In news.software.nntp article <3EE8755A.9070605@oceana.com>, Ken Murchison <ken@oceana.com> wrote: :Could someone explain to me how fetching by message-id (eg, HEAD/ARTICLE :<msgid>) is usually used by clients? What happens if the server no :longer has the message-id -> article mapping, but the article itself :still exists? Does the client fail to provide a certain functionality, :or can it get the info it needs by some other means? It may be useful to note that it isn't always a "message-id -> article" mapping. Diablo does exactly the opposite: it implements a very efficient storage mechanism for articles, keyed by Message-ID. When you retrieve a message by number, it looks up the Message-ID and retrieves it. My past reading of the RFC suggests that it isn't really permissible for the server to "get rid" of these associations, though (as others have noted) the Highwind products in particular seem to like to do this. Note also that for software which retrieves by MID (which includes the dreaderd package included with Diablo), if you can't retrieve by MID, frequently you may not be able to retrieve it at all. ... JG
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