commit 6ad7371f46b1d23616fc8edf9bff95443f5c7da4
Author: Oswald Buddenhagen <[email protected]>
Date:   Sat Oct 4 15:37:01 2014 +0200

    use resolved Path for initial filtering of LIST response
    
    otherwise we'd ignore NAMESPACE, and funny things could happen.

 src/drv_imap.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/drv_imap.c b/src/drv_imap.c
index 2b2e26c..67c24b9 100644
--- a/src/drv_imap.c
+++ b/src/drv_imap.c
@@ -1091,13 +1091,13 @@ parse_list_rsp_p2( imap_store_t *ctx, list_t *list, 
char *cmd ATTR_UNUSED )
        }
        arg = list->val;
        if (!is_inbox( ctx, arg )) {
-               l = strlen( ctx->gen.conf->path );
-               if (memcmp( arg, ctx->gen.conf->path, l ))
+               l = strlen( ctx->prefix );
+               if (memcmp( arg, ctx->prefix, l ))
                        goto skip;
                arg += l;
                if (is_inbox( ctx, arg )) {
                        if (!arg[5])
-                               warn( "IMAP warning: ignoring INBOX in %s\n", 
ctx->gen.conf->path );
+                               warn( "IMAP warning: ignoring INBOX in %s\n", 
ctx->prefix );
                        goto skip;
                }
        }

------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
isync-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/isync-devel

Reply via email to