0

I'm using python (Exchangelib) to read all emails;

it's working fine,

the question is my inbox folder has +60K email;

is there a way to get theme all ?

i tryed this using 1000000 but it's not getting all the emails

for item in account.inbox.all().only('subject').order_by('-datetime_received')[:1000000]:
    print(item.subject)
bfs
  • 1
  • 1
  • The above is supposed to get all emails. You don't need to do any slicing, though. `for item in account.inbox.all():` is enough. Anyway, what does `account.inbox.all().count()` return? And `account.inbox.total_count`? – Erik Cederstrand Sep 26 '22 at 18:24

0 Answers0