commit 0ad8ef80b28a40c11fb10c37aace0f02e5ec50f6
Author: Oswald Buddenhagen <[email protected]>
Date: Sun Dec 8 10:48:14 2013 +0100
don't check for INBOX more than necessary
src/drv_maildir.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/drv_maildir.c b/src/drv_maildir.c
index aba6e69..62863cf 100644
--- a/src/drv_maildir.c
+++ b/src/drv_maildir.c
@@ -228,11 +228,6 @@ maildir_list_recurse( store_t *gctx, int isBox, int
*flags, const char *inbox,
if (maildir_list_inbox( gctx, flags ) < 0)
return -1;
} else {
- if (!memcmp( ent, "INBOX", 6 )) {
- path[pathLen] = 0;
- warn( "Maildir warning: ignoring INBOX in
%s\n", path );
- continue;
- }
if (*ent == '.') {
if (!isBox)
continue;
@@ -242,6 +237,11 @@ maildir_list_recurse( store_t *gctx, int isBox, int
*flags, const char *inbox,
} else {
if (isBox)
continue;
+ if (!memcmp( ent, "INBOX", 6 )) {
+ path[pathLen] = 0;
+ warn( "Maildir warning: ignoring INBOX
in %s\n", path );
+ continue;
+ }
}
nl = nameLen + nfsnprintf( name + nameLen,
_POSIX_PATH_MAX - nameLen, "%s", ent );
if (maildir_list_recurse( gctx, 1, flags, inbox, path,
pl, name, nl ) < 0)
------------------------------------------------------------------------------
Sponsored by Intel(R) XDK
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
_______________________________________________
isync-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/isync-devel