vladimarius / imapy

Imapy: Imap for Humans
230 stars 22 forks source link

Added support to only retrieve a list of UID:s, not their content #25

Closed bivald closed 5 years ago

bivald commented 7 years ago

Feel free to close this if you deem it not fit for inclusion, I use imapy in a parallel fashion which means I first need to get a list of IDS and then I distribute them evenly across workers. However, right now emails() fetches the email's as well. This introduces a simple keyword argument called ids_only which when called only return the list of UIDs.

Usage: print(box.folder('INBOX').emails(ids_only=True))