[evolution-data-server] Bug #576398 - vfolder not showing new messages from nntp group



commit 71b2e7be4ccaab0731802a46a9c82c13d31c9419
Author: Milan Crha <mcrha redhat com>
Date:   Tue Aug 23 14:38:25 2011 +0200

    Bug #576398 - vfolder not showing new messages from nntp group

 camel/providers/nntp/camel-nntp-folder.c |   15 ++++++++++++++-
 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 9c5fa7d..cf18c97 100644
--- a/camel/providers/nntp/camel-nntp-folder.c
+++ b/camel/providers/nntp/camel-nntp-folder.c
@@ -71,15 +71,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



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]