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.
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 calledids_only
which when called only return the list of UIDs.Usage:
print(box.folder('INBOX').emails(ids_only=True))