CVS commit by ossi: do not repeatedly get namespace from server.
M +6 -2 drv_imap.c 1.25 --- isync/src/drv_imap.c #1.24:1.25 @@ -113,4 +113,5 @@ typedef struct imap_store { unsigned /*currentnc:1,*/ trashnc:1; int uidnext; /* from SELECT responses */ + unsigned got_namespace:1; list_t *ns_personal, *ns_other, *ns_shared; /* NAMESPACE info */ message_t **msgapp; /* FETCH results */ @@ -1401,6 +1402,9 @@ imap_open_store( store_conf_t *conf ) else if (cfg->use_namespace && CAP(NAMESPACE)) { /* get NAMESPACE info */ + if (!ctx->got_namespace) { if (imap_exec( ctx, 0, "NAMESPACE" ) != RESP_OK) goto bail; + ctx->got_namespace = 1; + } /* XXX for now assume personal namespace */ if (is_list( ctx->ns_personal ) && ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ isync-devel mailing list isync-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/isync-devel