commit 3161540ab9d4702809b9bf90a2fb39db1f3a7c9c
Author: Oswald Buddenhagen <[email protected]>
Date: Sat Feb 8 13:21:28 2014 +0100
fix crash on store without prior fetch with non-UIDPLUS servers
we'd never initialize the message list append pointer, so
imap_find_new_msgs()'s FETCH would go awry.
REFMAIL: <[email protected]>
src/drv_imap.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/drv_imap.c b/src/drv_imap.c
index 6007e54..fbb8817 100644
--- a/src/drv_imap.c
+++ b/src/drv_imap.c
@@ -1818,6 +1818,7 @@ imap_select( store_t *gctx, int create,
free_generic_messages( gctx->msgs );
gctx->msgs = 0;
+ ctx->msgapp = &gctx->msgs;
if (prepare_box( &buf, ctx ) < 0) {
cb( DRV_BOX_BAD, aux );
@@ -1852,7 +1853,6 @@ imap_load( store_t *gctx, int minuid, int maxuid, int
newuid, int *excs, int nex
} else {
struct imap_cmd_refcounted_state *sts =
imap_refcounted_new_state( cb, aux );
- ctx->msgapp = &ctx->gen.msgs;
sort_ints( excs, nexcs );
for (i = 0; i < nexcs; ) {
for (bl = 0; i < nexcs && bl < 960; i++) {
------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
_______________________________________________
isync-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/isync-devel