-
Notifications
You must be signed in to change notification settings - Fork 173
Description
Hey, Thanks for your help the other day,
I have an email box full of log files that are auto-sent daily as attachments.
I need to periodically check through the entire inbox and cross-reference the attachment file names with the data stored in the DB.
The problem that I have is that there does not seem to be a way to "peek" at items without downloading them entirely, and also there does not seem to be any pagination handling.
The peek function may be a limitation of the API, but i figured I'd ask because I was curious.
The pagination could be implemented though because when a request asks for too many items it sends a response with an error code and tells you to use pagination.
I have handled it for now by rescuing the exception and iterating through the mailbox by week until everything is downloaded
It would be amazing to have a peek method where i could retrieve the file names of the attachments before deciding if I wanted to download them..
No rush or pressure here, just trying to get my thoughts down and bounce ideas off the group..