aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-utils.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-05-06 23:31:29 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-06-30 00:42:10 +0800
commitdf96db8f36adee8760fc728ee512391638170ab0 (patch)
treeef2f5f8731aa90f30b93a988e7d902518a675167 /mail/em-utils.c
parentb5c7c656b60a3e676b9071efdc018b3966642231 (diff)
downloadgsoc2013-evolution-df96db8f36adee8760fc728ee512391638170ab0.tar
gsoc2013-evolution-df96db8f36adee8760fc728ee512391638170ab0.tar.gz
gsoc2013-evolution-df96db8f36adee8760fc728ee512391638170ab0.tar.bz2
gsoc2013-evolution-df96db8f36adee8760fc728ee512391638170ab0.tar.lz
gsoc2013-evolution-df96db8f36adee8760fc728ee512391638170ab0.tar.xz
gsoc2013-evolution-df96db8f36adee8760fc728ee512391638170ab0.tar.zst
gsoc2013-evolution-df96db8f36adee8760fc728ee512391638170ab0.zip
Adapt to X-Evolution-Source headers storing UIDs.
Diffstat (limited to 'mail/em-utils.c')
-rw-r--r--mail/em-utils.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/mail/em-utils.c b/mail/em-utils.c
index 81a702ce6b..07957ec456 100644
--- a/mail/em-utils.c
+++ b/mail/em-utils.c
@@ -2069,13 +2069,11 @@ guess_account_from_folder (CamelFolder *folder)
static EAccount *
guess_account_from_message (CamelMimeMessage *message)
{
- const gchar *source_url;
+ const gchar *uid;
- source_url = camel_mime_message_get_source (message);
- if (source_url == NULL)
- return NULL;
+ uid = camel_mime_message_get_source (message);
- return e_get_account_by_source_url (source_url);
+ return (uid != NULL) ? e_get_account_by_uid (uid) : NULL;
}
GHashTable *