diff options
author | Dan Winship <danw@src.gnome.org> | 2001-09-12 03:29:13 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2001-09-12 03:29:13 +0800 |
commit | d0196161ec51f0878bede0fa2163dc1c8ddf8990 (patch) | |
tree | f3d11342fa93ed93c6edc34576489aa14dede86e /mail/mail-folder-cache.c | |
parent | 4fe7567fdfc662d400b99be03e6800b345e5e7ff (diff) | |
download | gsoc2013-evolution-d0196161ec51f0878bede0fa2163dc1c8ddf8990.tar.gz gsoc2013-evolution-d0196161ec51f0878bede0fa2163dc1c8ddf8990.tar.zst gsoc2013-evolution-d0196161ec51f0878bede0fa2163dc1c8ddf8990.zip |
Don't set the folderinfo's unread count to 0 when camel reports -1, since
* mail-folder-cache.c (mail_folder_cache_note_folderinfo): Don't
set the folderinfo's unread count to 0 when camel reports -1,
since that may overwrite a valid unread count from before.
(get_folder_info): Do it here instead when first creating a new
folderinfo structure.
Should fix bug #1756.
svn path=/trunk/; revision=12768
Diffstat (limited to 'mail/mail-folder-cache.c')
-rw-r--r-- | mail/mail-folder-cache.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mail/mail-folder-cache.c b/mail/mail-folder-cache.c index 10f0aeaf5b..a4174fa477 100644 --- a/mail/mail-folder-cache.c +++ b/mail/mail-folder-cache.c @@ -126,6 +126,7 @@ get_folder_info (const gchar *uri) mfi->update_info.es = NULL; mfi->timeout_id = 0; mfi->mail_info_id = 0; + mfi->unread = 0; g_hash_table_insert (folders, mfi->uri, mfi); } else @@ -830,8 +831,6 @@ mail_folder_cache_note_folderinfo (const gchar *uri, CamelFolderInfo *fi) if (fi->unread_message_count != -1) { mfi->unread = fi->unread_message_count; mfi->flags |= MAIL_FIF_UNREAD_VALID; - } else { - mfi->unread = 0; } if (!(mfi->flags & MAIL_FIF_NAME_VALID)) { |