Re: [commit] async: *** full async

2011-03-13 Thread Oswald Buddenhagen
On Sun, Mar 13, 2011 at 03:41:43PM +, Oswald Buddenhagen wrote: > commit 7cb85c1c551ef1d044a59767ef20dc8cf5153d4b > Author: Oswald Buddenhagen > Date: Sun Mar 13 14:44:49 2011 +0100 > > *** full async > fwiw, this is mostly ready, except that i'll still try to split up the commit to be

[commit] async: *** full async

2011-03-13 Thread Oswald Buddenhagen
commit 7cb85c1c551ef1d044a59767ef20dc8cf5153d4b Author: Oswald Buddenhagen Date: Sun Mar 13 14:44:49 2011 +0100 *** full async configure.in |2 +- src/drv_imap.c | 475 +++-- src/isync.h| 54 +- src/mbsync.1 |4 +- src/socket.

[commit] branch 'async-failed' deleted

2011-03-13 Thread Oswald Buddenhagen
The branch 'async-failed', previously at 94a2c13, has been deleted. -- Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net

[commit] async: get rid of redundant literal_pending state flag

2011-03-13 Thread Oswald Buddenhagen
commit a960dec7e3242ff887bcf4278cd07c321645ff68 Author: Oswald Buddenhagen Date: Sat Mar 12 16:16:42 2011 +0100 get rid of redundant literal_pending state flag src/drv_imap.c | 15 +++ 1 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/drv_imap.c b/src/drv_im

[commit] async: add simple mainloop implementation

2011-03-13 Thread Oswald Buddenhagen
commit 19360c0388b87e3641ef5f33c378e5b3dc03dfb5 Author: Oswald Buddenhagen Date: Sun Mar 13 14:29:12 2011 +0100 add simple mainloop implementation not used so far configure.in |2 +- src/isync.h | 14 + src/main.c |1 + src/util.c | 152 +++

[commit] async: less bizarre code

2011-03-13 Thread Oswald Buddenhagen
commit 7de87234370f1ac74f3d70a0d7264720c90d5f63 Author: Oswald Buddenhagen Date: Sat Mar 12 16:20:48 2011 +0100 less bizarre code we know that there is only one command in progress, so there is no need to employ tricks to access the last command. src/drv_imap.c |3 +-- 1

[commit] async: compile with -ansi -pedantic on gcc

2011-03-13 Thread Oswald Buddenhagen
commit c938ebdd227d429ee375231c5462d299b33ac036 Author: Oswald Buddenhagen Date: Sun Mar 13 15:03:59 2011 +0100 compile with -ansi -pedantic on gcc greatly helps portability ... configure.in|3 ++- src/drv_imap.c | 12 ++-- src/mdconvert.c |2 +- 3 files ch

[commit] async: centralize imap_cmd disposal

2011-03-13 Thread Oswald Buddenhagen
commit 4032aa94f43f1cdf535b2011c0b5a03f64214351 Author: Oswald Buddenhagen Date: Sun Mar 13 14:24:15 2011 +0100 centralize imap_cmd disposal src/drv_imap.c | 43 +++ 1 files changed, 23 insertions(+), 20 deletions(-) diff --git a/src/drv_imap.c b

[commit] async: make socket_write() capable of taking ownership of the buffer

2011-03-13 Thread Oswald Buddenhagen
commit 66b041882ca1b61b9e383b522a6bfcbafa262aa4 Author: Oswald Buddenhagen Date: Sun Mar 13 14:12:54 2011 +0100 make socket_write() capable of taking ownership of the buffer that way the user code doesn't have to free it any more. src/drv_imap.c | 36 +++

[commit] async: change socket_write() return code semantics

2011-03-13 Thread Oswald Buddenhagen
commit 918f97c8c509762a389732efc05fe87ebc047d0a Author: Oswald Buddenhagen Date: Sun Mar 13 13:40:39 2011 +0100 change socket_write() return code semantics instead of returning a write()-like result, return only a binary status code - write errors are handled internally anyway,

[commit] async: make IMAP pipeline depth configurable

2011-03-13 Thread Oswald Buddenhagen
commit a025359c8a08fbe07294d732e7efc8b0f3d55cc6 Author: Oswald Buddenhagen Date: Sun Mar 6 22:30:44 2011 +0100 make IMAP pipeline depth configurable currently, this affects only "clustered" message listings and flag stores. src/drv_imap.c | 11 +-- src/mbsync.1 |

[commit] async: move socket code to a separate file

2011-03-13 Thread Oswald Buddenhagen
commit c32e3e1eebd8ac91fefcf1b3c6a1e82db903976b Author: Oswald Buddenhagen Date: Sun Jan 23 13:43:00 2011 +0100 move socket code to a separate file this makes the layering more obvious src/Makefile.am |2 +- src/drv_imap.c | 547 +++--

[commit] async: Socket_t + buffer_t => conn_t

2011-03-13 Thread Oswald Buddenhagen
commit 9bc99080de718a07986f23ecfb8b4c7fb2bffa61 Author: Oswald Buddenhagen Date: Sun Jan 23 14:06:03 2011 +0100 Socket_t + buffer_t => conn_t remove the layering, in favor of a "buffered connection" abstraction. src/drv_imap.c | 44 ++--

[commit] async: make cram() sane

2011-03-13 Thread Oswald Buddenhagen
commit 1f1bb1e178cba586b9152f372ed4dbc01387c5a6 Author: Oswald Buddenhagen Date: Sun Jan 23 13:35:56 2011 +0100 make cram() sane - don't silently fail in release mode (expression with side effects inside assert()) - save some redundand strlen()s by not throwing away known

[commit] async: move greeting response handling into get_cmd_result()

2011-03-13 Thread Oswald Buddenhagen
commit b817c3afd10f73ebfff251b1dd1bbc455aae9031 Author: Oswald Buddenhagen Date: Sun Mar 13 12:06:49 2011 +0100 move greeting response handling into get_cmd_result() the primary purpose of this is getting rid of the "free-standing" buffer_gets() call. src/drv_imap.c | 54 ++

[commit] async: docs

2011-03-13 Thread Oswald Buddenhagen
commit b6940b482c8ef744c74cabba410c27c515170aae Author: Oswald Buddenhagen Date: Sun Nov 14 23:16:32 2010 +0100 docs - insert "separator comments" between driver entry points - document driver API - fix one comment src/drv_imap.c | 36 ++- src/is

[commit] async: replace DRV_STORE_BAD with a separate bad_callback()

2011-03-13 Thread Oswald Buddenhagen
commit eaa44a9a7e37547ca6eb8ac9b5f133612eb9b3c7 Author: Oswald Buddenhagen Date: Sun Mar 13 15:53:23 2011 +0100 replace DRV_STORE_BAD with a separate bad_callback() that way we don't have to piggy-back (possibly asynchronous) fatal errors to particular commands. src/drv_imap.

[commit] async: make drv->cancel callback have no status code

2011-03-13 Thread Oswald Buddenhagen
commit 56c5a4d2467428c22e35bf447f05570a42caa3c0 Author: Oswald Buddenhagen Date: Sun Mar 13 15:51:09 2011 +0100 make drv->cancel callback have no status code this function is not going to actually execute any commands, so it makes no sense for it to return a status code. src/

[commit] async: make imap_exec() result reporting callback-based

2011-03-13 Thread Oswald Buddenhagen
commit 8b3bb9ade881d203b54f7495feb2c9530dcbf5be Author: Oswald Buddenhagen Date: Sun Mar 13 11:34:04 2011 +0100 make imap_exec() result reporting callback-based this makes the IMAP command submission interface asynchronous. the imap context is now refcounted, so it can be

[commit] async: don't hang if store cannot be opened asynchronously

2011-03-13 Thread Oswald Buddenhagen
commit fc5da2fd0a11bf5f26eda1f5ade443bac1f2addd Author: Oswald Buddenhagen Date: Sun Dec 19 23:33:29 2010 +0100 don't hang if store cannot be opened asynchronously src/main.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/main.c b/src/main.c index 107c2e8..

[commit] async: fix error paths wrt sync drivers the right way

2011-03-13 Thread Oswald Buddenhagen
commit 964e57a3db2d1cc9bdf177215c1a60d8a33d19f8 Author: Oswald Buddenhagen Date: Sat Nov 27 18:10:07 2010 +0100 fix error paths wrt sync drivers the right way instead of having essentially a second error path for the sync case, be more careful in the primary path. this reve

[commit] async: remove redundant use_ssl variable

2011-03-13 Thread Oswald Buddenhagen
commit 95eb906e88cd62c03246922898f8e9aac467cfde Author: Oswald Buddenhagen Date: Wed Dec 15 19:01:27 2010 +0100 remove redundant use_ssl variable src/drv_imap.c | 11 +-- 1 files changed, 1 insertions(+), 10 deletions(-) diff --git a/src/drv_imap.c b/src/drv_imap.c index 9c4982

[commit] async: make response code parse failure of untagged OK/NO/BYE/BAD non-fatal

2011-03-13 Thread Oswald Buddenhagen
commit 7761eac04bbb3a9890c0cc1fb3d101d3dff5549f Author: Oswald Buddenhagen Date: Sun Dec 5 16:49:11 2010 +0100 make response code parse failure of untagged OK/NO/BYE/BAD non-fatal as such, it does not disrupt the data stream src/drv_imap.c |3 +-- 1 files changed, 1 insertion

[commit] async: don't compare find_old_done with find_new_total

2011-03-13 Thread Oswald Buddenhagen
commit 31cc7f1509c35874739a8fc52ec577d480be28fd Author: Oswald Buddenhagen Date: Sat Nov 20 23:04:05 2010 +0100 don't compare find_old_done with find_new_total this didn't have any effect as no async drivers currently exist. src/sync.c |4 ++-- 1 files changed, 2 insertions(+

[commit] async: DRV_SERVER_BAD is and will probably stay unused => trash

2011-03-13 Thread Oswald Buddenhagen
commit 4b0a0451361217a5b149b56f6bd90e04e228c335 Author: Oswald Buddenhagen Date: Sat Nov 20 23:48:23 2010 +0100 DRV_SERVER_BAD is and will probably stay unused => trash src/isync.h |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/src/isync.h b/src/isync.h index 7

[commit] async: do away with the dreaded rcaps hack

2011-03-13 Thread Oswald Buddenhagen
commit 93c5595d4baa2e183c77d1cd5a8e934eb78e15ed Author: Oswald Buddenhagen Date: Mon Nov 15 10:38:50 2010 +0100 do away with the dreaded rcaps hack don't pretend that the server has no literal+ for the time of the first relevant command's synchronous execution. instead, enable

[commit] async: after [TRYCREATE], just resend the same command instead of cloning it

2011-03-13 Thread Oswald Buddenhagen
commit 63f2c15c7dfa129bb952e61b74618c66c9a1c2b9 Author: Oswald Buddenhagen Date: Sat Nov 20 10:17:41 2010 +0100 after [TRYCREATE], just resend the same command instead of cloning it src/drv_imap.c | 15 +-- 1 files changed, 5 insertions(+), 10 deletions(-) diff --git a/src/

[commit] async: purge imap_store_t::currentnc vestiges

2011-03-13 Thread Oswald Buddenhagen
commit 9e778c5450e32bf39382c6ebbe40c46d43b9e827 Author: Oswald Buddenhagen Date: Mon Nov 15 10:30:24 2010 +0100 purge imap_store_t::currentnc vestiges we always actually open the mailbox before appending to it, so we obviously know that it exists - that's why the code was alrea

[commit] async: don't leak SSL objects

2011-03-13 Thread Oswald Buddenhagen
commit 003fd6474fa9abc5354d0dca9dcc9aad58e1d2e8 Author: Oswald Buddenhagen Date: Sun Mar 6 23:04:46 2011 +0100 don't leak SSL objects src/drv_imap.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/src/drv_imap.c b/src/drv_imap.c index d8acc4f..d0f00cf 100644

[commit] branch 'async' rewound

2011-03-13 Thread Oswald Buddenhagen
The branch 'async', previously at 405d19e, has been rewound by 2 revision(s) to 1d0c484. -- Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the fu