Replies: 2 comments 1 reply
-
You should try all examples and read the comments inside. There are search and fetch operations for message data retrieving. Search by criteria using keywords, provided only message envelope or header of messages in the results, to save time and memory of execution in such low memory device use case, the amount of message returning will be limited by the predefined setting. Fecth with UID, provided the the whole contents of a message in the result. This consumed more time and memory as it needed to fetch all multi-part bodies in a message before collecting all data to user. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi
How do I get the mail body if I use the following code line in Arduino IDE?
imap.sendCustomCommand("UID FETCH 936 BODY", customCommandCallback);
In the serial monitor I get the following information:
16:46:50.073 -> > C: send imap command, FETCH
16:46:50.120 -> > C: fetch message header
16:46:50.309 -> > C: get flags...
16:46:50.546 -> > C: Free Heap: 16336
16:46:50.546 -> > C: finished reading Email
16:46:50.736 -> < S: UID OK Success
IMAP command seem to be OK, but how do I access the message BODY for UID 936?
Thanks!
/GunnarB
Beta Was this translation helpful? Give feedback.
All reactions