From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id B7C881F55B; Thu, 14 May 2020 16:15:14 +0000 (UTC) Date: Thu, 14 May 2020 16:15:14 +0000 From: Eric Wong To: "Eric W. Biederman" Cc: meta@public-inbox.org Subject: Re: I have figured out IMAP IDLE Message-ID: <20200514161514.GA23314@dcvr> References: <87eeyvmx74.fsf@x220.int.ebiederm.org> <20200513193144.GA9299@dcvr> <87ftc3mrq6.fsf@x220.int.ebiederm.org> <20200513221715.GA11718@dcvr> <877dxelmsr.fsf@x220.int.ebiederm.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <877dxelmsr.fsf@x220.int.ebiederm.org> List-Id: "Eric W. Biederman" wrote: > Just implementing the UID=>1 commands definitely sounds like a place to > start. At least that should be enough for testing. Heh, except "UID FETCH" returns sequence numbers :< Since we're only doing read-only IMAP, I think it's safe to make sequence numbers equivalent to UIDs (which are NNTP article numbers). Dummy messages can be returned if somebody starts trying to retrieve by non-existent sequence numbers. > I will rebase and post my code in the next day or so, depending on how > my schedule goes. Thanks. For the purposes of public-inbox-watch, I think the only item UID FETCH really needs is the full message ("RFC822" aka "BODY[]"). I'll have to see what other IMAP clients out there expect; but I'm not looking forward to translating all search queries to SQL or Xapian; just "ALL", $UID_LO:$UID_HI and maybe some other simple cases which don't require a recursive descent parser.