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

Simplify em_utils_folder_is_sent().

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 a7b7c8e9
...@@ -1144,17 +1144,12 @@ em_utils_folder_is_sent (CamelFolder *folder) ...@@ -1144,17 +1144,12 @@ em_utils_folder_is_sent (CamelFolder *folder)
EAccount *account; EAccount *account;
/* XXX EIterator misuses const. */ /* XXX EIterator misuses const. */
account = (EAccount *)e_iterator_get (iterator); account = (EAccount *) e_iterator_get (iterator);
if (account->sent_folder_uri) {
gchar *sent_uri;
sent_uri = em_uri_to_camel ( if (account->sent_folder_uri != NULL)
account->sent_folder_uri);
is_sent = e_mail_folder_uri_equal ( is_sent = e_mail_folder_uri_equal (
session, sent_uri, folder_uri); session, folder_uri,
g_free (sent_uri); account->sent_folder_uri);
}
e_iterator_next (iterator); 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