From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/31847 Path: main.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.general Subject: Re: (provide 'nnmaildir) Date: 18 Jul 2000 18:34:55 +0200 Sender: owner-ding@hpc.uh.edu Message-ID: References: <20000715005611.8018.qmail@multivac.student.cwru.edu> <20000717182810.13970.qmail@multivac.student.cwru.edu> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035168212 16397 80.91.224.250 (21 Oct 2002 02:43:32 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 02:43:32 +0000 (UTC) Cc: ding@gnus.org Return-Path: Original-Received: from fisher.math.uh.edu (fisher.math.uh.edu [129.7.128.35]) by mailhost.sclp.com (Postfix) with ESMTP id 538CAD051F for ; Tue, 18 Jul 2000 12:38:45 -0400 (EDT) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by fisher.math.uh.edu (8.9.1/8.9.1) with ESMTP id LAC23485; Tue, 18 Jul 2000 11:35:12 -0500 (CDT) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Tue, 18 Jul 2000 11:33:59 -0500 (CDT) Original-Received: from mailhost.sclp.com (postfix@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id LAA11860 for ; Tue, 18 Jul 2000 11:33:38 -0500 (CDT) Original-Received: from vic20.blipp.com (unknown [195.84.94.187]) by mailhost.sclp.com (Postfix) with ESMTP id 948AED051E for ; Tue, 18 Jul 2000 12:34:09 -0400 (EDT) Original-Received: from barbar.josefsson.org (IDENT:root@localhost [127.0.0.1]) by vic20.blipp.com (8.10.1/8.10.1) with SMTP id e6IGY4608439; Tue, 18 Jul 2000 18:34:04 +0200 Original-To: Steve Harris In-Reply-To: Steve Harris's message of "18 Jul 2000 08:34:42 -0700" Mail-Copies-To: never Original-Lines: 44 User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Carlsbad Caverns) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:31847 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:31847 Steve Harris writes: > > It might translate back and forth between Gnus-article# and > > IMAP-article# but that would be really slow, and the whole point of > > having state in the server is lost. > > Simon, > > Having seen your reiteration above, do you have any answers to my > question of what needs to change in Gnus to support _proper_ operation > of nnimap with maildir-inspired IDs? Is it even possible? The maildir ID situation doesn't apply -- we don't get to assign article numbers like nnmaildir can. (If I'm wrong about this, please describe how it would work, I can't see it.) There are at least four solutions to the large-UIDs-from-IMAP-server problem (I'm not saying they are good or realistic): . Make elisp integers hold at least 32 bit integers and re-write gnus-range.el in C to make it fast. . Implement the translation back and forth between gnus-article number and imap-article number, within nnimap. This is ``hairy''. Remember -- the IMAP library uses elisp integers when dealing with articles so you'd basicly have to implement a (efficient) bignum-implementation and make it work within the IMAP parser. When this is done you'd need, in nnimap, somehow convert the 1..2^32 range into the 1..2^28 range, with the properties of starting at a low value and being monotonously increasing and contigious, that Gnus can handle. . make Gnus accept non-integer article references. This might be a good thing anyway (think of using URLs to reference articles), but you'd still need to do most of the work in the previous point though. . change/modify your server. Since nnmaildir seem to be coming, it might be a more realistic solution for you.