Refactored code in modest_text_utils_get_display_addresses to get a list of display...
[modest] / src / modest-text-utils.h
index f10562f..f2c59c9 100644 (file)
@@ -246,6 +246,19 @@ void modest_text_utils_hyperlinkify (GString *string_buffer);
 void modest_text_utils_get_display_address (gchar *address);
 
 /**
+ * modest_text_utils_get_display_addresses:
+ * @addresses: a list of comma-separated addresses
+ *
+ * Transforms a list of email addresses in a list of recipients,
+ * replacing each plain email address by the correspondent display
+ * address.
+ *
+ * Returns: a newly allocated string, that must be freed by the caller
+ **/
+gchar *modest_text_utils_get_display_addresses (const gchar *addresses);
+
+
+/**
  * modest_text_utils_get_email_address:
  * @full_address: original address (UTF8 string)
  *
@@ -487,5 +500,4 @@ gchar *modest_text_utils_escape_mnemonics (const gchar *text);
  */
 gchar *modest_text_utils_simplify_recipients (const gchar *recipient);
 
-
 #endif /* __MODEST_TEXT_UTILS_H__ */