Begin imap client implementation.
* include/mailutils/imap.h: New file. * include/mailutils/Makefile.am (pkginclude_HEADERS): Add imap.h * libproto/imap/capability.c: New file. * libproto/imap/capatst.c: New file. * libproto/imap/carrier.c: New file. * libproto/imap/connect.c: New file. * libproto/imap/create.c: New file. * libproto/imap/destroy.c: New file. * libproto/imap/disconnect.c: New file. * libproto/imap/err.c: New file. * libproto/imap/fake-folder.c: New file. * libproto/imap/logout.c: New file. * libproto/imap/response.c: New file. * libproto/imap/state.c: New file. * libproto/imap/tag.c: New file. * libproto/imap/trace.c: New file. * libproto/imap/Makefile.am (libmu_imap_la_SOURCES): Temporarly remove folder.c, mbox.c and url.c. Add new files. * mu/getarg.c: New file. * mu/imap.c: New file. * mu/verbose.c: New file. * mu/Makefile.am (IDLE_MODULES): New variable. (IMAP_C): New variable. (MODULES): Add $(IMAP_C). (mu_SOURCES): Add getarg.c and verbose.c (mu-setup.h, mu-setup.c): Add IDLE_MODULES both to the dependencies and to the mu-setup.awk command line. * mu/mu-setup.awk: New keyword mu-cond. * mu/pop.c: Add mu-cond keyword. * include/mailutils/sys/imap.h: Rewrite. * include/mailutils/sys/pop3.h (MU_POP3_CHECK_EAGAIN): Take into account MU_ERR_REPLY and MU_ERR_BADREPLY, which are recoverable errors. * libmailutils/base/list.c (mu_list_clear): Return immediately if list is NULL. * libmu_auth/sql.c (sql_escape_string): Remove unused variable. * libproto/pop/pop3_carrier.c (mu_pop3_get_carrier): Increase refcount on the returned stream. * libproto/pop/pop3_response.c (mu_pop3_response): Check POP3 reply code.
Showing
31 changed files
with
1946 additions
and
360 deletions
include/mailutils/imap.h
0 → 100644
libproto/imap/capability.c
0 → 100644
libproto/imap/capatst.c
0 → 100644
libproto/imap/carrier.c
0 → 100644
libproto/imap/connect.c
0 → 100644
libproto/imap/create.c
0 → 100644
libproto/imap/destroy.c
0 → 100644
libproto/imap/disconnect.c
0 → 100644
libproto/imap/err.c
0 → 100644
libproto/imap/fake-folder.c
0 → 100644
libproto/imap/logout.c
0 → 100644
libproto/imap/response.c
0 → 100644
libproto/imap/state.c
0 → 100644
libproto/imap/tag.c
0 → 100644
libproto/imap/trace.c
0 → 100644
mu/getarg.c
0 → 100644
mu/imap.c
0 → 100644
mu/verbose.c
0 → 100644
-
Please register or sign in to post a comment