* Try to autodetect clock skew. * Include remote port number in IMAP and POP3 logs. * Optimization: skip over folders not in the current scope, avoiding unnecessary overhead of checking their ACLs.
16 lines
425 B
Text
16 lines
425 B
Text
$NetBSD: patch-an,v 1.1 2007/10/15 15:37:21 jlam Exp $
|
|
|
|
--- imap/mailboxlist.c.orig Fri Jul 27 02:41:01 2007
|
|
+++ imap/mailboxlist.c
|
|
@@ -347,9 +347,11 @@ static void folder_entry(char *folder, c
|
|
if (!need_add_folders && !need_add_hier)
|
|
return; /* Nothing to do */
|
|
|
|
+ {
|
|
CHECK_RIGHTSM(folder, have_rights, ACL_LOOKUP);
|
|
if (!have_rights[0])
|
|
return;
|
|
+ }
|
|
|
|
if (need_add_folders)
|
|
(void) add_hier(folders, folder);
|