IMAP library, or support via tsNet?

Matthias Rebbe matthias_livecode_150811 at m-r-d.de
Thu Jan 3 14:57:26 CET 2019


Ben,

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://192.168.7.25" into pURL
put tsnetCustomSync(pURL,pRequest,xHeaders,rOutHeaders,rResult,rBytes,pSettings)

Did not try ssl, but should work also.


Regards,

Matthias



Matthias Rebbe

free tools for Livecoders:
https://instamaker.dermattes.de
https://winsignhelper.dermattes.de

> Am 03.01.2019 um 12:17 schrieb Ben Rubinstein via use-livecode <use-livecode at lists.runrev.com>:
> 
> 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
> 	https://github.com/emailjs/emailjs-imap-client
> 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 lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode



More information about the use-livecode mailing list