cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: IMAP, POP3, SMTP and their TLS siblings

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sat, 12 Dec 2009 23:02:20 +0100 (CET)

On Thu, 26 Nov 2009, Daniel Stenberg wrote:

> The new protocols are as the subject says: IMAP, POP3 and SMTP. They will
> include their SSL/TLS-based variations IMAPS, POP3S and SMTPS as well as the
> "STARTTLS" approach to upgrade from plain connection to SSL/TLS.

I've now committed my first big change supporting these new protocols.

They all work more or less, but my plan is now to work in-tree to get them
working correctly and I have POP3 working in the test suite, I have IMAP
almost working and I think getting SMTP in there should be fairly easy too.

All "old" protocols should still work exactly like before, but since this is
the largest change to libcurl done in quite some time I expect some things
will need attention now.

If you want to help out with getting these new protocols up to speed, then
please go ahead try them out and get a feel for how they work and join in. I
expect to work in CVS from now on.

Diffstat said this about the patch:

  include/curl/curl.h | 13
  lib/Makefile.am | 2
  lib/Makefile.inc | 5
  lib/README.pingpong | 30 +
  lib/ftp.c | 595 ++++------------------------
  lib/ftp.h | 106 ++++-
  lib/imap.c | 1026 +++++++++++++++++++++++++++++++++++++++++++++++++
  lib/imap.h | 56 ++
  lib/pingpong.c | 536 +++++++++++++++++++++++++
  lib/pingpong.h | 148 +++++++
  lib/pop3.c | 961 +++++++++++++++++++++++++++++++++++++++++++++
  lib/pop3.h | 62 ++
  lib/smtp.c | 921 +++++++++++++++++++++++++++++++++++++++++++
  lib/smtp.h | 61 ++
  lib/transfer.c | 10
  lib/url.c | 44 +-
  lib/urldata.h | 165 +------
  lib/version.c | 21 +
  src/main.c | 19
  tests/data/Makefile.am | 2
  tests/data/test800 | 47 ++
  tests/ftpserver.pl | 285 ++++++++++---
  tests/runtests.pl | 169 +++++---
  23 files changed, 4531 insertions(+), 753 deletions(-)

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2009-12-12