[evolution-patches] Add flags for inbox in imapv4rev1
- From: Björn Torkelsson <torkel acc umu se>
- To: evolution-patches <evolution-patches ximian com>
- Subject: [evolution-patches] Add flags for inbox in imapv4rev1
- Date: Sun, 13 Feb 2005 13:55:31 +0100
Needed to get the inbox first in the folder listning.
/torkel
Index: camel/providers/imap4/ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution-data-server/camel/providers/imap4/ChangeLog,v
retrieving revision 1.9
diff -u -r1.9 ChangeLog
--- camel/providers/imap4/ChangeLog 4 Feb 2005 03:09:34 -0000 1.9
+++ camel/providers/imap4/ChangeLog 13 Feb 2005 12:53:58 -0000
@@ -1,3 +1,9 @@
+2005-02-13 Björn Torkelsson <torkel acc umu se>
+
+ * camel-imap4-store.c (imap4_build_folder_info): Add flags if it
+ is inbox.
+
+
2005-02-04 Not Zed <NotZed Ximian com>
* camel-imap4-store.c (imap4_build_folder_info): always get the
Index: camel/providers/imap4/camel-imap4-store.c
===================================================================
RCS file: /cvs/gnome/evolution-data-server/camel/providers/imap4/camel-imap4-store.c,v
retrieving revision 1.50
diff -u -r1.50 camel-imap4-store.c
--- camel/providers/imap4/camel-imap4-store.c 4 Feb 2005 03:09:34 -0000 1.50
+++ camel/providers/imap4/camel-imap4-store.c 13 Feb 2005 12:53:58 -0000
@@ -1241,6 +1241,9 @@
fi->flags = list->flags | (lsub ? CAMEL_FOLDER_SUBSCRIBED : 0);
fi->unread = -1;
fi->total = -1;
+
+ if (g_ascii_strcasecmp (fi->full_name, "INBOX") == 0)
+ fi->flags |= CAMEL_FOLDER_SYSTEM|CAMEL_FOLDER_TYPE_INBOX;
/* SELECTED folder, just get it from the folder */
if (folder && !strcmp (folder->full_name, fi->full_name)) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]