diff options
-rw-r--r-- | mail/ChangeLog | 6 | ||||
-rw-r--r-- | mail/mail-send-recv.c | 10 |
2 files changed, 12 insertions, 4 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index 566ba74d90..ab87ea6faf 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,9 @@ +2006-12-18 Sankar P <psankar@novell.com> + + * mail-send-recv.c: (get_folders): + Do not check for mails in all folders, for Exchange. + Will be more than useful when you have a lot of folders. + 2006-12-05 Srinivasa Ragavan <sragavan@novell.com> * em-folder-browser.c: (generate_viewoption_menu): Added icon/image to diff --git a/mail/mail-send-recv.c b/mail/mail-send-recv.c index fb4b5e0eed..2fc91f6f53 100644 --- a/mail/mail-send-recv.c +++ b/mail/mail-send-recv.c @@ -791,10 +791,12 @@ get_folders(CamelStore *store, GPtrArray *folders, CamelFolderInfo *info) controls this refresh process. TODO: add virtual camel_store_refresh_info() which does this ... */ if (camel_url_get_param(((CamelService *)store)->url, "check_all") != NULL - || (strcmp(((CamelService *)store)->url->protocol, "imap") != 0 - && strcmp(((CamelService *)store)->url->protocol, "groupwise") != 0 - && strcmp(((CamelService *)store)->url->protocol, "scalix") != 0) - || (info->flags & CAMEL_FOLDER_TYPE_MASK) == CAMEL_FOLDER_TYPE_INBOX) + || (strcmp(((CamelService *)store)->url->protocol, "imap") != 0 + && strcmp(((CamelService *)store)->url->protocol, "groupwise") != 0 + && strcmp(((CamelService *)store)->url->protocol, "scalix") != 0 + && strcmp(((CamelService *)store)->url->protocol, "exchange") != 0 ) + + || (info->flags & CAMEL_FOLDER_TYPE_MASK) == CAMEL_FOLDER_TYPE_INBOX) g_ptr_array_add(folders, g_strdup(info->uri)); get_folders(store, folders, info->child); info = info->next; |