aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-utils.c
diff options
context:
space:
mode:
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 *