Replies: 1 comment 1 reply
-
After reading again into the forum the proper way to use batch seem to be placing limit=None eg :
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I checked the documentation and the source but I do not understand how the attribute "batch" is working.
My need :
I have to get all email on a specific date ( actually each day) and do some check on the messages and attachement.
What i have done
First I created my query :
Then I request to get the messages and here the first thing I do not understand why batch is an int shouldn't it be a Bool saying that I want to request all messages based on the limit sequence ?
and then I loop on msg and print them, here the second point I do not understand if my batch is a collection how it continue the batch based on this code ?
Of course the resulr is showing only 20 lines out of more than 1000
I also have tested with all on one line no knowing how th eiteration is really working in the class
But I got the same 20 answers
I have seen the code speacking about "Pagination" but it look that my "get_message" is only sendinf back message and not pagination object
Yes i'm new to python and I probably do not get something but I hope that you can still help me .
Thanks
Beta Was this translation helpful? Give feedback.
All reactions