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=-3.6 required=3.0 tests=AWL,BAYES_00, RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from out02.mta.xmission.com (out02.mta.xmission.com [166.70.13.232]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 8127F1F55B; Thu, 14 May 2020 12:35:56 +0000 (UTC) Received: from in01.mta.xmission.com ([166.70.13.51]) by out02.mta.xmission.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jZD5f-0007wQ-7g; Thu, 14 May 2020 06:35:55 -0600 Received: from ip68-227-160-95.om.om.cox.net ([68.227.160.95] helo=x220.xmission.com) by in01.mta.xmission.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.87) (envelope-from ) id 1jZD5e-0008FZ-1s; Thu, 14 May 2020 06:35:54 -0600 From: ebiederm@xmission.com (Eric W. Biederman) To: Eric Wong Cc: meta@public-inbox.org References: <87eeyvmx74.fsf@x220.int.ebiederm.org> <20200513193144.GA9299@dcvr> <87ftc3mrq6.fsf@x220.int.ebiederm.org> <20200513221715.GA11718@dcvr> Date: Thu, 14 May 2020 07:32:20 -0500 In-Reply-To: <20200513221715.GA11718@dcvr> (Eric Wong's message of "Wed, 13 May 2020 22:17:15 +0000") Message-ID: <877dxelmsr.fsf@x220.int.ebiederm.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-XM-SPF: eid=1jZD5e-0008FZ-1s;;;mid=<877dxelmsr.fsf@x220.int.ebiederm.org>;;;hst=in01.mta.xmission.com;;;ip=68.227.160.95;;;frm=ebiederm@xmission.com;;;spf=neutral X-XM-AID: U2FsdGVkX18UCGnis1JcJyWgNW4w+1ukkqQcyHbY7oE= X-SA-Exim-Connect-IP: 68.227.160.95 X-SA-Exim-Mail-From: ebiederm@xmission.com Subject: Re: I have figured out IMAP IDLE X-SA-Exim-Version: 4.2.1 (built Thu, 05 May 2016 13:38:54 -0600) X-SA-Exim-Scanned: Yes (on in01.mta.xmission.com) List-Id: Eric Wong writes: > "Eric W. Biederman" wrote: >> Eric Wong writes: >> > Is your stuff based on Mail::IMAPClient still working well? >> >> Yes. I have fixed a few things to make the code more robust. >> Which is mostly me learning how Mail::IMAPClient works. >> >> I also keep tweaking the ckde to make it more generic/simpler >> so it has the potential to be usable by someone else. >> >> Would be interested if I rebased onto the lastest release and >> posted my code? Perhaps you could put into contrib until you >> have something that gets properly tested? > > Definitely. Just having it here in the archives as an > attachment ought to be enough. Thanks in advance. > >> > I'm starting to integrate Mail::IMAPClient support into >> > public-inbox-watch, but not sure how to go about with >> > automated test cases... >> > >> > I guess it's reason to implement a read-only IMAP server along >> > the lines of public-inbox-nntpd :> >> >> That sounds like a pain but it does sound like a good plan. I think >> there are a lot of people that if there was even a simple IMAP server >> would find it easier to get started using public-inbox. > > Agree on the pain vs payoff part; I wonder if I can just > implement the UID commands and ignore the unstable sequence > number madness. Mail::IMAPClient does the right thing by > defaulting to Uid=>1, at least. Just implementing the UID=>1 commands definitely sounds like a place to start. At least that should be enough for testing. I will rebase and post my code in the next day or so, depending on how my schedule goes. Eric