diff options
author | Chris Toshok <toshok@helixcode.com> | 2000-10-11 12:37:33 +0800 |
---|---|---|
committer | Chris Toshok <toshok@src.gnome.org> | 2000-10-11 12:37:33 +0800 |
commit | 4f8ffe430fdfe646741aaaf569929b286fc1be2f (patch) | |
tree | 65e8406cd00ce8eaaa08aa207e33a35a68aa4a89 /camel/providers/nntp/camel-nntp-store.c | |
parent | 139f2405f0a36396f7e3e171ad03a18e8d78ea69 (diff) | |
download | gsoc2013-evolution-4f8ffe430fdfe646741aaaf569929b286fc1be2f.tar.gz gsoc2013-evolution-4f8ffe430fdfe646741aaaf569929b286fc1be2f.tar.zst gsoc2013-evolution-4f8ffe430fdfe646741aaaf569929b286fc1be2f.zip |
fill in message_count and unread_message_count properly.
2000-10-10 Chris Toshok <toshok@helixcode.com>
* providers/nntp/camel-nntp-store.c
(build_folder_info_from_grouplist): fill in message_count and
unread_message_count properly.
* providers/nntp/camel-nntp-newsrc.h: reformat.
* providers/nntp/camel-nntp-grouplist.c
(camel_nntp_get_grouplist_from_file): remove spew.
* providers/nntp/camel-nntp-newsrc.c
(camel_nntp_newsrc_group_get_num_articles_read): new function.
(camel_nntp_newsrc_group_get_highest_article_read): robustification.
svn path=/trunk/; revision=5832
Diffstat (limited to 'camel/providers/nntp/camel-nntp-store.c')
-rw-r--r-- | camel/providers/nntp/camel-nntp-store.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/camel/providers/nntp/camel-nntp-store.c b/camel/providers/nntp/camel-nntp-store.c index e814ac3ae3..a83bb8778c 100644 --- a/camel/providers/nntp/camel-nntp-store.c +++ b/camel/providers/nntp/camel-nntp-store.c @@ -354,8 +354,10 @@ build_folder_info_from_grouplist (CamelNNTPStore *nntp_store) url->user ? url->user : "", url->user ? "@" : "", url->host, (char *)entry->group_name); - /* FIXME */ - fi->message_count = fi->unread_message_count = -1; + + fi->message_count = entry->high - entry->low; + fi->unread_message_count = (fi->message_count - + camel_nntp_newsrc_get_num_articles_read (nntp_store->newsrc, entry->group_name)); if (last) last->sibling = fi; |