X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Fmodest-text-utils.h;h=7cb5ab5c4f3cccace41755f3036ef3ae682e87a4;hb=0cd3bbc169fe8d5a35d6d61555668244b4d04067;hp=d881f00ad5901926a29988748ef80df70f825349;hpb=3a65c0163dc7290de04ecf59d6863eca4991ec3b;p=modest diff --git a/src/modest-text-utils.h b/src/modest-text-utils.h index d881f00..7cb5ab5 100644 --- a/src/modest-text-utils.h +++ b/src/modest-text-utils.h @@ -504,4 +504,28 @@ gchar *modest_text_utils_escape_mnemonics (const gchar *text); */ gchar *modest_text_utils_simplify_recipients (const gchar *recipient); +/** + * modest_text_utils_remove_duplicate_addresses_list + * @address_list: non-NULL #GSList of email addresses + * + * remove duplicate addresses from a list of email addresses + * + * Returns: a list without the duplicate addresses or NULL in case of + * error or the original @address_list was NULL + */ +GSList *modest_text_utils_remove_duplicate_addresses_list (GSList *address_list); + +/** + * modest_text_utils_get_secure_header: + * @value: the value of a mail header + * @header: the header that we're evaluating + * + * This function returns the secure value for a header. Basically it + * avoids DoS attacks caused by specially malformed headers like for + * example. From:From:From...From: some@mail.com + * + * Returns: returns the secured header + **/ +gchar * modest_text_utils_get_secure_header (const gchar *value, const gchar *header); + #endif /* __MODEST_TEXT_UTILS_H__ */