summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2011-08-23 14:38:54 +0200
committerMilan Crha <mcrha@redhat.com>2011-08-23 14:38:54 +0200
commit6fbfcdd627686c78fad10efc40204a877b1e4ca0 (patch)
tree79de9ea5cc5f056857546b021513979b83933a61
parent4de215d8a23a1e5486daa5f8d65671f5e7b0193b (diff)
downloadevolution-data-server-6fbfcdd627686c78fad10efc40204a877b1e4ca0.tar.gz
Bug #576398 - vfolder not showing new messages from nntp group
-rw-r--r--camel/providers/nntp/camel-nntp-folder.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/camel/providers/nntp/camel-nntp-folder.c b/camel/providers/nntp/camel-nntp-folder.c
index 680cab445..9c6315636 100644
--- a/camel/providers/nntp/camel-nntp-folder.c
+++ b/camel/providers/nntp/camel-nntp-folder.c
@@ -72,15 +72,28 @@ camel_nntp_folder_selected (CamelNNTPFolder *nntp_folder,
{
CamelFolder *folder;
CamelStore *parent_store;
+ gboolean res;
folder = CAMEL_FOLDER (nntp_folder);
parent_store = camel_folder_get_parent_store (folder);
- return camel_nntp_summary_check (
+ res = camel_nntp_summary_check (
CAMEL_NNTP_SUMMARY (folder->summary),
CAMEL_NNTP_STORE (parent_store),
line, nntp_folder->changes,
cancellable, error);
+
+ if (camel_folder_change_info_changed (nntp_folder->changes)) {
+ CamelFolderChangeInfo *changes;
+
+ changes = nntp_folder->changes;
+ nntp_folder->changes = camel_folder_change_info_new ();
+
+ camel_folder_changed (CAMEL_FOLDER (nntp_folder), changes);
+ camel_folder_change_info_free (changes);
+ }
+
+ return res;
}
static gboolean