Re: [Gambas-user] Support for IMAP in gb.net.curl

2017-09-28 Thread Tony Morehen
Benoit, the Read issue is resolved.  I tested using both the the existing code, with the read loop and the original code where it tries to read the entire message at once.  Both work for both a TCP connection and an openssl connection. However, the send comand for a TCP connection raises a soc

Re: [Gambas-user] Support for IMAP in gb.net.curl

2017-09-26 Thread Benoît Minisini via Gambas-user
Hi, Tony. I have just pushed the 'rework-stream-interface' branch to the gitlab repository. I have reworked the internal interpreter stream interface, so that incomplete reads are retried automatically until all the data is read or an error occurs, whatever the underlying stream. Can you t

Re: [Gambas-user] Support for IMAP in gb.net.curl

2017-09-25 Thread PICCORO McKAY Lenz
memory page seems are related configurable take care! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-09-24 17:18 GMT-04:00 Benoît Minisini via Gambas-user < gambas-user@lists.sourceforge.net>: > Le 24/09/2017 à 22:46, Tony Morehen a écrit : > >> There's not much logic behind

Re: [Gambas-user] Support for IMAP in gb.net.curl

2017-09-24 Thread Benoît Minisini via Gambas-user
Le 24/09/2017 à 22:46, Tony Morehen a écrit : There's not much logic behind the 4096.  It was the first number I tried and it worked.  I originally used 4096 in a copy routine in a file manager program.  There, 4096 makes sense as it equals a hard drive cluster size. It's more because it's th

Re: [Gambas-user] Support for IMAP in gb.net.curl

2017-09-24 Thread Tony Morehen
There's not much logic behind the 4096.  It was the first number I tried and it worked.  I originally used 4096 in a copy routine in a file manager program.  There, 4096 makes sense as it equals a hard drive cluster size. On 2017-09-24 04:06 PM, Benoît Minisini via Gambas-user wrote: Le 24/0

Re: [Gambas-user] Support for IMAP in gb.net.curl

2017-09-24 Thread Benoît Minisini via Gambas-user
Le 24/09/2017 à 04:07, Tony Morehen a écrit : I came across an interesting issue when working on Imap's Fetch command.  Fetch is used to down load messages.  The response to a Fetch has 4 parts: 1) a single line providing the size of the download, say, 69000 bytes. 2) the mime-encoded download

Re: [Gambas-user] Support for IMAP in gb.net.curl

2017-09-23 Thread PICCORO McKAY Lenz
WOW! we now can make that bugtrackert check a email accoount for new tickets! with this class we can build now more advanced apps that can checks and process evnets based on mails messages.. this class will be available in 3.10.X ? or later? Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blog

Re: [Gambas-user] Support for IMAP in gb.net.curl

2017-09-23 Thread Tony Morehen
I came across an interesting issue when working on Imap's Fetch command.  Fetch is used to down load messages.  The response to a Fetch has 4 parts: 1) a single line providing the size of the download, say, 69000 bytes. 2) the mime-encoded download (a string 69000 bytes long) 3) one line whose o

Re: [Gambas-user] Support for IMAP in gb.net.curl

2017-09-23 Thread Tony Morehen
To support a dynamic email account (one with new messages and deleted messages) and to implement the Idle and Notify commands, I need to handle server notifications.  What I plan to do is implement a monitor loop which will do a readline on the input from the server.  Each new line will be test

Re: [Gambas-user] Support for IMAP in gb.net.curl

2017-09-23 Thread Tony Morehen
Just a quick update on an Imap class.  The following methods have been implemented and, for the most part, tested: Abort, AddMessageFlags, Authed, BuildSequenceSet, Capabilities, CleanUpMailBoxList, Connect, CopyMessage, CopyMessages, CreateMailbox, Debug, DeleteMailbox, DeleteMessage, DeleteM