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



commit 6fbfcdd627686c78fad10efc40204a877b1e4ca0
Author: Milan Crha <mcrha redhat com>
Date:   Tue Aug 23 14:38:54 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 680cab4..9c63156 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



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