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-ASN: AS6315 166.70.0.0/16 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-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 7ED701F4BD; Thu, 10 Oct 2019 10:56:52 +0000 (UTC) Received: from in02.mta.xmission.com ([166.70.13.52]) by out02.mta.xmission.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.87) (envelope-from ) id 1iIW7k-0001Hh-Ur; Thu, 10 Oct 2019 04:56:49 -0600 Received: from ip68-227-160-95.om.om.cox.net ([68.227.160.95] helo=x220.xmission.com) by in02.mta.xmission.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.87) (envelope-from ) id 1iIW7k-0001ZK-5l; Thu, 10 Oct 2019 04:56:48 -0600 From: ebiederm@xmission.com (Eric W. Biederman) To: Eric Wong Cc: Alyssa Ross , meta@public-inbox.org References: <87imp05hlm.fsf@alyssa.is> <20191008001050.rwd7bh7cek7qrydi@dcvr> <87wodfctwd.fsf@x220.int.ebiederm.org> <20191008221108.3wsso25kviiwd7ek@dcvr> <87wodec1um.fsf@x220.int.ebiederm.org> <20191008224104.GA24142@dcvr> <87h84ibb9m.fsf@x220.int.ebiederm.org> <20191010083132.GA14886@ailurophile> Date: Thu, 10 Oct 2019 05:56:01 -0500 In-Reply-To: <20191010083132.GA14886@ailurophile> (Eric Wong's message of "Thu, 10 Oct 2019 08:31:32 +0000") Message-ID: <877e5c50ou.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=1iIW7k-0001ZK-5l;;;mid=<877e5c50ou.fsf@x220.int.ebiederm.org>;;;hst=in02.mta.xmission.com;;;ip=68.227.160.95;;;frm=ebiederm@xmission.com;;;spf=neutral X-XM-AID: U2FsdGVkX1/s+ojDrmB1mGgWUUkswreVw2JU9dJpPc4= X-SA-Exim-Connect-IP: 68.227.160.95 X-SA-Exim-Mail-From: ebiederm@xmission.com Subject: Re: Do I need multiple publicinbox..address values? X-SA-Exim-Version: 4.2.1 (built Thu, 05 May 2016 13:38:54 -0600) X-SA-Exim-Scanned: Yes (on in02.mta.xmission.com) List-Id: Eric Wong writes: > "Eric W. Biederman" wrote: >> Eric Wong writes: >> >> > "Eric W. Biederman" wrote: >> >> my $tracker = PublicInbox::IMAPTracker->new(); >> > >> > Thanks. What's PublicInbox::IMAPTracker? >> >> Something that keeps the last fetched UID in an sqlite database. >> I will follow up with a patch for that as well. > > Thanks! > >> I haven't been brave enough to let this script delete any mail >> yet so I need to track what has been fetched. Something that >> will be rolled back if the email message isn't commited into git. >> >> I have a companion script that will delete mail. > > Yup. I also don't trust and don't want somebody trusting my > code when it comes to deleting stuff. > > So I've also been considering a script which deletes mail from > my Maildirs/IMAP folders if a ContentId matches what's in a > known public-inbox, perhaps after a certain time... Interesting. Partly I have been leaving things up so I could restart the process if the script fails. I like the idea of a verifier/deleter. I have a delete up to my imap tracker script. A verifier will probably share a lot of logic with the imap importer script, but since it only has to confirm something is stable before deleting, it isn't quite the same. Time permitting I will play with that next. Eric