commit 5fd90d83fffc76768c07ceea3b819b6df99aec9f
Author: Oswald Buddenhagen <o...@users.sf.net>
Date:   Sun Nov 10 17:13:41 2019 +0100

    don't store 'shared' and 'other' namespaces
    
    they are never used anyway, and aren't going to be (because configuring
    that would be more annoying than just specifying Path manually).

 src/drv_imap.c | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

diff --git a/src/drv_imap.c b/src/drv_imap.c
index ddc2958..36226b2 100644
--- a/src/drv_imap.c
+++ b/src/drv_imap.c
@@ -106,7 +106,7 @@ struct imap_store {
        enum { TrashUnknown, TrashChecking, TrashKnown } trashnc;
        uint got_namespace:1;
        char delimiter[2]; /* hierarchy delimiter */
-       list_t *ns_personal, *ns_other, *ns_shared; /* NAMESPACE info */
+       list_t *ns_personal; /* NAMESPACE info */
        string_list_t *boxes; // _list results
        char listed; // was _list already run with these flags?
        // note that the message counts do _not_ reflect stats from msgs,
@@ -931,16 +931,14 @@ parse_namespace_rsp( imap_store_t *ctx, list_t *list, 
char *s )
 static int
 parse_namespace_rsp_p2( imap_store_t *ctx, list_t *list, char *s )
 {
-       if (parse_namespace_check( (ctx->ns_other = list) ))
-               return LIST_BAD;
+       free_list( list );
        return parse_list( ctx, s, parse_namespace_rsp_p3 );
 }
 
 static int
-parse_namespace_rsp_p3( imap_store_t *ctx, list_t *list, char *s ATTR_UNUSED )
+parse_namespace_rsp_p3( imap_store_t *ctx ATTR_UNUSED, list_t *list, char *s 
ATTR_UNUSED )
 {
-       if (parse_namespace_check( (ctx->ns_shared = list) ))
-               return LIST_BAD;
+       free_list( list );
        return LIST_OK;
 }
 
@@ -1582,8 +1580,6 @@ imap_cancel_store( store_t *gctx )
        cancel_sent_imap_cmds( ctx );
        cancel_pending_imap_cmds( ctx );
        free_list( ctx->ns_personal );
-       free_list( ctx->ns_other );
-       free_list( ctx->ns_shared );
        free_string_list( ctx->auth_mechs );
        imap_cleanup_store( ctx );
        imap_deref( ctx );


_______________________________________________
isync-devel mailing list
isync-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/isync-devel

Reply via email to