commit f361738ad20720a56e6d4e2932f5c0f8070f8779
Author: Oswald Buddenhagen <[email protected]>
Date:   Thu Mar 26 17:28:49 2015 +0100

    don't claim that INBOX is absent even if it was not listed
    
    IMAP defines that INBOX is always present.

 src/main.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main.c b/src/main.c
index b26ba8d..026be82 100644
--- a/src/main.c
+++ b/src/main.c
@@ -691,11 +691,11 @@ sync_chans( main_vars_t *mvars, int ent )
                                } else if (cmp < 0) {
                                        mbox->name = boxes[M][mb];
                                        mbox->present[M] = BOX_PRESENT;
-                                       mbox->present[S] = BOX_ABSENT;
+                                       mbox->present[S] = (!mb && !strcmp( 
mbox->name, "INBOX" )) ? BOX_PRESENT : BOX_ABSENT;
                                        mb++;
                                } else {
                                        mbox->name = boxes[S][sb];
-                                       mbox->present[M] = BOX_ABSENT;
+                                       mbox->present[M] = (!sb && !strcmp( 
mbox->name, "INBOX" )) ? BOX_PRESENT : BOX_ABSENT;
                                        mbox->present[S] = BOX_PRESENT;
                                        sb++;
                                }

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
isync-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/isync-devel

Reply via email to