Add persistent IMAP UIDs, OAuth2 support, smart body verification, and checkpoint resumption - #85
Conversation
…d checkpoint resumption
|
Thanks Tom, but that's too many changes for a single pull request. (It looks possibly AI-generated?) |
|
Almost entirely AI of course. Wouldn't it be weirder not to use AI these days? The changes seem quite tightly linked: "Smart Body & Attachment Verification (--check-body) and Checkpointing are deeply intertwined with the UID refactoring (they rely on immutable UIDs rather than sequence numbers)." So it would be a sequence of at least 4 PRs to be merged sequentially, and the end result would be this anyway. I made these changes to make imapdedup usable for me, but they're here under free disposal. (I would suggest you switch to UIDs in any case, as the current system is a recipe for deleting the wrong thing.) |
|
OK, thanks, Tom - I'll try to get a chance to look through all of these! (It's not that I'm not grateful for your contributions, but I have to be a bit careful about things like backward compatibility. There are some people who have been running this as part of an automation against unusual IMAP servers for many years, so I wouldn't want to break anything for them. Or at least, only break things one at a time!) |
Summary of Improvements
This PR introduces several robustness, authentication, and safety enhancements to IMAPdedup:
Persistent IMAP UIDs (RFC 3501)
Smart Body & Attachment Verification (--check-body\ / --no-check-body)
OAuth2 Modern Authentication (-o / --oauth2\ & --token-file)
Resilience, Checkpointing & Auto-Resumption
Custom Domain Server Mapping (--server-map)
Enhanced Header Checksum (-c\ & -m)
Clean Piping & Pipeline Support (-l)
Documentation