[evolution-data-server] CamelObject: Suppress state file warnings for old IMAP accounts.



commit 47825442a2e70e3e4e79414742f8f2194d16d533
Author: Matthew Barnes <mbarnes redhat com>
Date:   Tue Jan 8 10:00:30 2013 -0500

    CamelObject: Suppress state file warnings for old IMAP accounts.
    
    CamelImapFolder had a persistent "check-folder" property whose value was
    recorded in Camel's binary state files under tag 0x2500.  This property
    is not present in CamelIMAPXFolder, but we may still be reading the tag
    for accounts that were migrated from IMAP to IMAPX.  Check for that tag
    value while reading state files and suppress the runtime warning.

 camel/camel-object.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/camel/camel-object.c b/camel/camel-object.c
index d13cd7b..25eed39 100644
--- a/camel/camel-object.c
+++ b/camel/camel-object.c
@@ -238,6 +238,13 @@ object_state_read (CamelObject *object,
 			break;
 		}
 
+		/* XXX This tag was used by the old IMAP backend.
+		 *     It may still show up in accounts that were
+		 *     migrated from IMAP to IMAPX.  Silence the
+		 *     warning. */
+		if (tag == 0x2500)
+			property_set = TRUE;
+
 		if (!property_set)
 			g_warning (
 				"Could not find a corresponding %s "



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