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

Simplify em_utils_folder_is_drafts().

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 9f31ae4e
......@@ -1091,15 +1091,10 @@ em_utils_folder_is_drafts (CamelFolder *folder)
/* XXX EIterator misuses const. */
account = (EAccount *) e_iterator_get (iterator);
if (account->drafts_folder_uri) {
gchar *drafts_uri;
drafts_uri = em_uri_to_camel (
account->drafts_folder_uri);
if (account->drafts_folder_uri != NULL)
is_drafts = e_mail_folder_uri_equal (
session, drafts_uri, folder_uri);
g_free (drafts_uri);
}
session, folder_uri,
account->drafts_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