diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-05-06 23:31:29 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2011-05-06 23:31:29 +0800 |
commit | 49c833b128823ffc7bf8c3ad68ec3fc656e76464 (patch) | |
tree | effc15d18dc6c94147d11d6dbde5ff9c7fc413d2 /mail/em-utils.c | |
parent | e3f577a5b9c6c9fd8ed45dc025cc3fe9f27da63d (diff) | |
download | gsoc2013-evolution-49c833b128823ffc7bf8c3ad68ec3fc656e76464.tar gsoc2013-evolution-49c833b128823ffc7bf8c3ad68ec3fc656e76464.tar.gz gsoc2013-evolution-49c833b128823ffc7bf8c3ad68ec3fc656e76464.tar.bz2 gsoc2013-evolution-49c833b128823ffc7bf8c3ad68ec3fc656e76464.tar.lz gsoc2013-evolution-49c833b128823ffc7bf8c3ad68ec3fc656e76464.tar.xz gsoc2013-evolution-49c833b128823ffc7bf8c3ad68ec3fc656e76464.tar.zst gsoc2013-evolution-49c833b128823ffc7bf8c3ad68ec3fc656e76464.zip |
Adapt to X-Evolution-Source headers storing UIDs.
Diffstat (limited to 'mail/em-utils.c')
-rw-r--r-- | mail/em-utils.c | 8 |
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 * |