diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-05-06 02:06:14 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@gnome-db.org> | 2011-06-30 00:42:07 +0800 |
commit | a7b7c8e963e7eba7ba7d1d804652a3b24c401572 (patch) | |
tree | faa1e717404e8836deefeb51344178b8fde63d85 | |
parent | 9f31ae4e29b72a85f41c886762533436c2618bb1 (diff) | |
download | gsoc2013-evolution-a7b7c8e963e7eba7ba7d1d804652a3b24c401572.tar gsoc2013-evolution-a7b7c8e963e7eba7ba7d1d804652a3b24c401572.tar.gz gsoc2013-evolution-a7b7c8e963e7eba7ba7d1d804652a3b24c401572.tar.bz2 gsoc2013-evolution-a7b7c8e963e7eba7ba7d1d804652a3b24c401572.tar.lz gsoc2013-evolution-a7b7c8e963e7eba7ba7d1d804652a3b24c401572.tar.xz gsoc2013-evolution-a7b7c8e963e7eba7ba7d1d804652a3b24c401572.tar.zst gsoc2013-evolution-a7b7c8e963e7eba7ba7d1d804652a3b24c401572.zip |
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.
-rw-r--r-- | mail/em-utils.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/mail/em-utils.c b/mail/em-utils.c index 1cb1d62492..7efa1df32c 100644 --- a/mail/em-utils.c +++ b/mail/em-utils.c @@ -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); } |