Commit 9f31ae4e authored by Matthew Barnes's avatar Matthew Barnes Committed by Rodrigo Moya
Browse files

Simplify em_utils_folder_is_templates().

e_mail_folder_uri_equal() uses e_mail_folder_uri_parse() to parse both
URIs, so we can just hand it an 'email://' URI directly.
parent 8ab99283
......@@ -1036,15 +1036,10 @@ em_utils_folder_is_templates (CamelFolder *folder)
/* XXX EIterator misuses const. */
account = (EAccount *) e_iterator_get (iterator);
if (account->templates_folder_uri) {
gchar *templates_uri;
templates_uri = em_uri_to_camel (
account->templates_folder_uri);
if (account->templates_folder_uri != NULL)
is_templates = e_mail_folder_uri_equal (
session, templates_uri, folder_uri);
g_free (templates_uri);
}
session, folder_uri,
account->templates_folder_uri);
e_iterator_next (iterator);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment