diff options
author | Sankar P <psankar@novell.com> | 2006-12-18 19:08:46 +0800 |
---|---|---|
committer | Sankarasivasubramanian Pasupathilingam <psankar@src.gnome.org> | 2006-12-18 19:08:46 +0800 |
commit | bb3201b7062df7eda72510c9ff436772d867bb50 (patch) | |
tree | 2ad5143c92e10d7b854fb5070e41932f4c47c4dd /mail | |
parent | 77aa0140434e3b75fdb0e3019aefff0f5698b016 (diff) | |
download | gsoc2013-evolution-bb3201b7062df7eda72510c9ff436772d867bb50.tar.gz gsoc2013-evolution-bb3201b7062df7eda72510c9ff436772d867bb50.tar.zst gsoc2013-evolution-bb3201b7062df7eda72510c9ff436772d867bb50.zip |
Do not check for mails in all folders, for Exchange. Will be more than
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.
svn path=/trunk/; revision=33081
Diffstat (limited to 'mail')
-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; |