Eric Wong <[email protected]> writes: > "Eric W. Biederman" <[email protected]> wrote: >> Eric Wong <[email protected]> writes: >> >> > "Eric W. Biederman" <[email protected]> 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 -- unsubscribe: [email protected] archive: https://public-inbox.org/meta/
