Quantcast
Channel: LiveCode Forums
Viewing all articles
Browse latest Browse all 783

Talking LiveCode • Re: Need Assistance with Fetching Unread Emails Using IMAP in LiveCode

$
0
0
Hi Denilza,

For retrieving an e-mail message via IMAP, you can use tsNetGet (or tsNetGetSync) with an IMAP url that contains the UID of the relevent message. You do not use tsNetCustomSync to achieve this. To find the UID of the message to use in the URL, you can performed a IMAP SEARCH on the folder.

Take a look at:

https://lessons.livecode.com/m/4071/l/8 ... ap-account

It uses tsNetCustomSync to perform a "SEARCH NOT DELETED" command against the IMAP server to retrieve a list of UIDs for the messages in the INBOX that are not deleted.

Once the user selects a specific message, it uses a tsNetGetSync request with a URL that includes the relevant message UID for retrieving the message.

Here is an example URL for retrieving a message (with a message UID of 1):

imaps://imapP8:993/INBOX/;UID=1

Hope that helps,

Regards,

Charles

Statistics: Posted by charlesBUSd8qF — Tue Jul 09, 2024 11:06 am



Viewing all articles
Browse latest Browse all 783

Trending Articles