Problem while removing items from another client



Hi,

I've experienced an issue related to IDLE when removing messages. I have
a folder with one msg in Modest and I'm removing that message using
another client. Then what I'm getting at client side, is a
TnyFolderChange object with -1 as return value for
tny_folder_change_get_new_all_count. The reason is that camel is telling
us that the folder count is 0 but we're decreasing that value again in
the folder_changed function. See the attached patch.

Maybe I'm loosing something.

Br
Index: libtinymail-camel/tny-camel-folder.c
===================================================================
--- libtinymail-camel/tny-camel-folder.c	(revision 3274)
+++ libtinymail-camel/tny-camel-folder.c	(working copy)
@@ -402,9 +402,6 @@
 				{
 					TnyHeader *hdr = _tny_camel_header_new ();
 
-					if (info->push_email_event) 
-						priv->cached_length--;
-
 					if (!change)
 						change = tny_folder_change_new (self);
 


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