On simplifying the recipients, also remove "undisclosed-recipients"
[modest] / src / modest-text-utils.c
index 99c4bf6..be439ac 100644 (file)
@@ -1938,6 +1938,10 @@ modest_text_utils_simplify_recipients (const gchar *recipients)
        for (node = addresses; node != NULL; node = g_slist_next (node)) {
                const gchar *address = (const gchar *) node->data;
                gchar *left_limit, *right_limit;
        for (node = addresses; node != NULL; node = g_slist_next (node)) {
                const gchar *address = (const gchar *) node->data;
                gchar *left_limit, *right_limit;
+
+               if (address && strstr(address, "undisclosed-recipients"))
+                       continue;
+
                left_limit = strstr (address, "<");
                right_limit = g_strrstr (address, ">");
 
                left_limit = strstr (address, "<");
                right_limit = g_strrstr (address, ">");