IMAP library, or support via tsNet?

Matthias Rebbe matthias_livecode_150811 at
Thu Jan 3 14:57:26 CET 2019


i just did a quick test with my local test mai server. This script for example would output the number of messages in the imap folder to the message box.

put tUSERNAME into pSettings["username"]
put put into pSettings["password"]
put "STATUS INBOX (MESSAGES)" into pRequest
put "imap://" into pURL
put tsnetCustomSync(pURL,pRequest,xHeaders,rOutHeaders,rResult,rBytes,pSettings)

Did not try ssl, but should work also.



Matthias Rebbe

free tools for Livecoders:

> Am 03.01.2019 um 12:17 schrieb Ben Rubinstein via use-livecode <use-livecode at>:
> Is there anything in the way of an IMAP library around?
> My needs are relatively simple: I want to connect to an iMAP server, recursively list folders and fetch the size of each (if necessary by fetching the size of each message)
> e.g. in JavaScript with this library
> I'd be using
> 	connect()
> 	listMailboxes()
> 	listMessages(... ['RFC822.SIZE'])
> 	...
> Is there a library that would support this kind of access?
> Does tsNet provide anything above the basic network primitives to support this?  Some time I ago there was a tantalising hint on this list:
> On 24/08/2017 11:05, Charles Warwick via use-livecode wrote:
>> IMAP and POP3 support in tsNet under Linux is only available in tsNet 1.3.0+ which will be bundled with the next LC release.
>> All other platforms have had support for those protocols for a while.  I hope to have some documentation available in the next two weeks.
> Did that ever come to fruition?
> Many thanks,
> Ben
> _______________________________________________
> use-livecode mailing list
> use-livecode at
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

More information about the use-livecode mailing list