From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/50291 Path: main.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.general Subject: Re: Why article numbers? Date: Sat, 22 Feb 2003 23:33:32 +0100 Sender: owner-ding@hpc.uh.edu Message-ID: References: <841y2jzrgm.fsf@lucy.is.informatik.uni-duisburg.de> <84el60hvg9.fsf@lucy.is.informatik.uni-duisburg.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1045953254 25688 80.91.224.249 (22 Feb 2003 22:34:14 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 22 Feb 2003 22:34:14 +0000 (UTC) Cc: ding@gnus.org Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18miDk-0006g4-00 for ; Sat, 22 Feb 2003 23:34:12 +0100 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 18miDT-0004eS-00; Sat, 22 Feb 2003 16:33:55 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sat, 22 Feb 2003 16:34:53 -0600 (CST) Original-Received: from sclp3.sclp.com (sclp3.sclp.com [66.230.238.2]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id QAA00700 for ; Sat, 22 Feb 2003 16:34:39 -0600 (CST) Original-Received: (qmail 9168 invoked by alias); 22 Feb 2003 22:33:36 -0000 Original-Received: (qmail 9163 invoked from network); 22 Feb 2003 22:33:36 -0000 Original-Received: from 178.230.13.217.in-addr.dgcsystems.net (HELO yxa.extundo.com) (217.13.230.178) by 66.230.238.6 with SMTP; 22 Feb 2003 22:33:36 -0000 Original-Received: from latte.josefsson.org (yxa.extundo.com [217.13.230.178]) (authenticated bits=0) by yxa.extundo.com (8.12.7/8.12.7) with ESMTP id h1MMXWXf018149 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Sat, 22 Feb 2003 23:33:33 +0100 Original-To: kai.grossjohann@uni-duisburg.de (Kai =?iso-8859-1?q?Gro=DFjohann?=) Mail-Copies-To: nobody X-Payment: hashcash 1.1 0:030222:kai.grossjohann@uni-duisburg.de:f96a0f9dee05c360 X-Hashcash: 0:030222:kai.grossjohann@uni-duisburg.de:f96a0f9dee05c360 X-Payment: hashcash 1.1 0:030222:ding@gnus.org:6b40ba284db9d8a5 X-Hashcash: 0:030222:ding@gnus.org:6b40ba284db9d8a5 In-Reply-To: <84el60hvg9.fsf@lucy.is.informatik.uni-duisburg.de> (kai.grossjohann@uni-duisburg.de's message of "Sat, 22 Feb 2003 22:11:34 +0100") User-Agent: Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.3.50 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:50291 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:50291 kai.grossjohann@uni-duisburg.de (Kai Großjohann) writes: > Lars Magne Ingebrigtsen writes: > >> "A lot of work" is an understatement, but what would the advantages >> be? (Other than making hard disk and ram manufacturers happy, that >> is.) > > If Gnus stored marks for message ids instead of article numbers: > > * you could move from one news server to another without losing your > marks, and without gnus-move-to-another-server, or what is it > called; > > * nnimap could store marks that survive uidvalidity changes; > > * you could mark articles that were retrieved via `^'; > > * the cache would survive server-side renumbering, as would the agent. How would you handle two messages with the same message-id? Or no message-id (think drafts)? Since it is possible to create that scenario, Gnus should IMHO handle it. I think an abstract data type separated from the message itself is more flexible. I see two problems with the use of integers today: handling sets of integers can be slow, and the integer limit in emacs is too small. Regarding the nnimap issue, a better solution would IMHO be to fix it to do proper re-syncing on UIDVALIDITY changes, which it probably would have to do even if message-id's are used to index articles since IMAP uses integers to retrieve articles anyway.