diff -ur --new-file cyrus-imapd-cvs.orig/imap/sync_client.c cyrus-imapd-cvs/imap/sync_client.c --- cyrus-imapd-cvs.orig/imap/sync_client.c 2006-07-26 20:03:15.000000000 -0400 +++ cyrus-imapd-cvs/imap/sync_client.c 2006-08-26 11:16:03.000000000 -0400 @@ -553,7 +553,7 @@ /* Quietly ignore objects that we don't have access to. * Includes directory stubs, which have not underlying cyrus.* * files in the filesystem */ - if (r == IMAP_MAILBOX_NONEXISTENT) { + if (r == IMAP_PERMISSION_DENIED) { r = 0; continue; }