Bug 678903 - GConf migration omits so-called "send-only" accounts
authorMatthew Barnes <mbarnes@redhat.com>
Wed, 4 Jul 2012 20:38:34 +0000 (16:38 -0400)
committerMatthew Barnes <mbarnes@redhat.com>
Wed, 4 Jul 2012 20:38:34 +0000 (16:38 -0400)
services/evolution-source-registry/evolution-source-registry-migrate-sources.c

index 48729e1..d906827 100644 (file)
@@ -1871,6 +1871,12 @@ migrate_parse_account_xml_text (GMarkupParseContext *context,
                        break;
 
                case PARSE_STATE_IN_MAIL_SOURCE_URL:
+                       /* XXX Workaround for so-called "send-only"
+                        *     accounts, which have no source URL.
+                        *     Their backend name is "none". */
+                       if (text != NULL && *text == '\0')
+                               text = "none:";
+
                        migrate_parse_url (
                                parse_data,
                                parse_data->key_file,