Patch: fix inbox detection in dovecot



	Hi,

	In the dovecot server I'm testing modest, I find that the inbox folder
does not get the inbox folder type.

	This patch solves this.

Changelog:
* libtinymail-camel/camel-lite/camel/providers/imap/camel-imap-store.c:
Check on fetching folder info if the top folder is inbox (should fix
inbox detection in dovecot).

-- 
José Dapena Paz <jdapena igalia com>
Igalia
Index: libtinymail-camel/camel-lite/camel/providers/imap/camel-imap-store.c
===================================================================
--- libtinymail-camel/camel-lite/camel/providers/imap/camel-imap-store.c	(revision 3730)
+++ libtinymail-camel/camel-lite/camel/providers/imap/camel-imap-store.c	(working copy)
@@ -4162,6 +4162,9 @@
 	g_free(pattern);
 
 	fi = camel_folder_info_build (folders, top, '/', TRUE);
+	/* for the case the inbox itself has been synthesized here */
+	if (!g_ascii_strcasecmp(fi->full_name, "inbox"))
+		fi->flags = (fi->flags & ~CAMEL_FOLDER_TYPE_MASK) | CAMEL_FOLDER_TYPE_INBOX;
 	g_ptr_array_free (folders, TRUE);
 	g_free(name);
 


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