imapclient
imapclient copied to clipboard
High level API
There are a few common actions where the approach to choose depends on the extensions supported by the server, for instance:
- Moving a message from a folder to another
- Waiting for new messages
- Finding well known folders (Sent, Deleted...)
We could introduce a higher level API that would pick the best approach based on what the server supports.
That could make sense. As long as checking a capability is pretty fast (and so choosing the best alternative) and does not degrade performances, I don't see any problems letting IMAPClient handle the best way to do an operation.
Added finding well known folders: between flags, patterns and namespaces, finding the Sent
folder is harder than it looks.