aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-05-06 02:06:14 +0800
committerMatthew Barnes <mbarnes@redhat.com>2011-05-06 03:20:23 +0800
commit03315463529dd850639984f79b014c9486f2230a (patch)
tree1165b5af4a465a012352359ee00155d7232fe176 /mail
parent6077ee74b623ee5fa1c5b79c4e74f79b48a91b9e (diff)
downloadgsoc2013-evolution-03315463529dd850639984f79b014c9486f2230a.tar
gsoc2013-evolution-03315463529dd850639984f79b014c9486f2230a.tar.gz
gsoc2013-evolution-03315463529dd850639984f79b014c9486f2230a.tar.bz2
gsoc2013-evolution-03315463529dd850639984f79b014c9486f2230a.tar.lz
gsoc2013-evolution-03315463529dd850639984f79b014c9486f2230a.tar.xz
gsoc2013-evolution-03315463529dd850639984f79b014c9486f2230a.tar.zst
gsoc2013-evolution-03315463529dd850639984f79b014c9486f2230a.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.
Diffstat (limited to 'mail')
-rw-r--r--mail/em-utils.c11
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);
}