POP3 and IMAP Problem

CapReed

Member
Licensed User
Longtime User
Hi all,

I have several days researching the Net library to create an application that can read all the emails that I have stored in my Gmail account. Unfortunately, I can not read every post, only just entering. How could perform a sequential read of all emails stored? :sign0085:

I am using the POP3 Erel example, using POP_DownloadCompleted

On the other hand, is it possible to work with IMAP BA4?

Sorry for my English ...

Thanks for your time.
 

CapReed

Member
Licensed User
Longtime User
Hi Erel!

I've been all day with this issue and I think I'll have to use sockets to get the whole list of emails from the inbox. Like I'm saying some nonsense ... I am very new to this stuff!

Do you have any example where I can send the POP3 server through a socket, for example, USER, PASS, LIST, etc, etc, etc?

Thanks for your time.
 
Upvote 0

CapReed

Member
Licensed User
Longtime User
That's right, I understand. But to be working directly with the server could establish a protocol that would allow me to also negotiate with the IMAP server.

For example, assuming that we would be working with POP3, the steps would be the usual:

A. - Establish communication with the socket.
2. - Wait for me on the server OK.
3. - USER Send you the user in question
4. - Send you PASS with the key
5. Make a LIST to see all the messages and can be recovered one by one to read the header.

I understand that this is the same that makes the library NET, but as the IMAP is not implemented in NET, I intend to learn as with POP3 to IMAP then do it.

I hope the google translator to translate this agile this long post ;-)
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Implementing IMAP will be useful. I was writing about POP3 which is already implemented.

However it is a very difficult task to implement it yourself especially if you are not experienced. I know that someone has starting working on an IMAP library that wraps an open source project. This approach will be much simpler.
 
Upvote 0

moster67

Expert
Licensed User
Longtime User
IMAP would be great :sign0060:

Some years ago I was playing around with Windows Mobile (don't recall if I was using Basic4PPC or Visual Basic Net) and accessing GMail (and other email-accounts) using IMAP. I remember I had to use SSL over socket. I got most of it working - the tricky part was MIME (for attachments) which I got working partially. At the end I lost interest but it is doable. However, it will require some studying of the various protocols.
 
Upvote 0
Top