From: Dirk-Jan C. Binnema Date: Thu, 20 Dec 2007 17:04:45 +0000 (+0000) Subject: * berto is smarter than i am X-Git-Tag: git_migration_finished~1888 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=7da795698644949174aa9b3fc82a3a1ad58829f4 * berto is smarter than i am pmo-trunk-r3951 --- diff --git a/src/modest-tny-msg.c b/src/modest-tny-msg.c index 69745e5..dfb6d13 100644 --- a/src/modest-tny-msg.c +++ b/src/modest-tny-msg.c @@ -732,6 +732,11 @@ get_new_to (TnyMsg *msg, TnyHeader *header, const gchar* from, g_free (new_to); new_to = tmp; } + + /* remove duplicate entries */ + gchar *tmp = modest_text_utils_remove_duplicate_addresses (new_to); + g_free (new_to); + new_to = tmp; /* now, strip me (the new From:) from the new_to, but only if * there are >1 addresses there */ @@ -740,11 +745,6 @@ get_new_to (TnyMsg *msg, TnyHeader *header, const gchar* from, g_free (new_to); new_to = tmp; } - - /* remove duplicate entries */ - gchar *tmp = modest_text_utils_remove_duplicate_addresses (new_to); - g_free (new_to); - new_to = tmp; } return new_to;