+ * quote an existing message
+ *
+ * Returns: a newly allocated string containing the quoted message
+ */
+gchar* modest_text_utils_quote (const gchar *text,
+ const gchar *content_type,
+ const gchar *signature,
+ const gchar *from,
+ const time_t sent_date,
+ GList *attachments,
+ int limit);
+
+
+/**
+ * modest_text_utils_cited_text:
+ * @from: sender of the message
+ * @sent_date: the sent date of the original message
+ * @text: the text of the original message
+ *
+ * cite the text in a message
+ *
+ * Returns: a newly allocated string containing the cited text
+ */
+gchar* modest_text_utils_cite (const gchar *text,
+ const gchar *content_type,
+ const gchar *signature,
+ const gchar *from,
+ time_t sent_date);
+
+/**
+ * modest_text_utils_inlined_text
+ * @from: the non-NULL sender of the original message
+ * @sent_date: sent date/time of the original message
+ * @to:
+ * @subject:
+ * @text:
+ *
+ * creates a new string with the "Original message" text prepended to
+ * the text passed as argument and some data of the header
+ *
+ * Returns: a newly allocated string containing the quoted message
+ */
+gchar* modest_text_utils_inline (const gchar *text,
+ const gchar *content_type,
+ const gchar *signature,
+ const gchar *from,
+ time_t sent_date,
+ const gchar *to,
+ const gchar *subject);
+
+/**
+ * modest_text_utils_remove_address
+ * @address_list: non-NULL string with a comma-separated list of email addresses
+ * @address: an specific e-mail address
+ *
+ * remove a specific address from a list of email addresses; if @address
+ * is NULL, returns an unchanged (but newly allocated) @address_list
+ *
+ * Returns: a newly allocated string containing the new list, or NULL
+ * in case of error or the original @address_list was NULL
+ */
+gchar* modest_text_utils_remove_address (const gchar *address_list,
+ const gchar *address);
+
+
+/**
+ * modest_text_utils_remove_duplicate_addresses
+ * @address_list: non-NULL string with a comma-separated list of email addresses
+ *
+ * remove duplicate addresses from a list of email addresses
+ *
+ * Returns: a newly allocated string containing the new list, or NULL
+ * in case of error or the original @address_list was NULL
+ */
+gchar* modest_text_utils_remove_duplicate_addresses (const gchar *address_list);
+
+
+
+/**
+ * modest_text_utils_address_range_at_position:
+ * @address_list: non-NULL utf8 string containing a list of addresses
+ * @position: a gint
+ * @start: a gint pointer
+ * @end: a gint pointer
+ *
+ * Finds the start and end positions of the address at @position,
+ * in @recipients_list, a list of addresses in the format of a
+ * recipient list in email. It stores the results in @start and
+ * @end
+ */
+void modest_text_utils_address_range_at_position (const gchar *recipients_list,
+ guint position,
+ guint *start,
+ guint *end);
+
+/**
+ * modest_text_utils_hyperlinkify_begin:
+ *
+ * begin a linkify block, compiling the caches to be reused.
+ */
+void modest_text_utils_hyperlinkify_begin (void);
+
+/**
+ * modest_text_utils_hyperlinkify_end:
+ *
+ * end a linkify block, freeing the caches to be reused.
+ */
+void modest_text_utils_hyperlinkify_end (void);
+
+/**
+ * modest_text_utils_convert_to_html:
+ * @txt: a string
+ *
+ * convert plain text (utf8) into html
+ *
+ * Returns: a newly allocated string containing the html
+ */
+gchar* modest_text_utils_convert_to_html (const gchar *txt);
+
+/**
+ * modest_text_utils_convert_to_html_body:
+ * @txt: a string
+ *
+ * convert plain text (utf8) into html without adding html headers.
+ *
+ * Returns: a newly allocated string containing the html
+ */
+gchar* modest_text_utils_convert_to_html_body (const gchar *data, gssize n, gboolean hyperlinkify);
+
+
+/**
+ * modest_text_utils_strftime:
+ * @s:
+ * @max:
+ * @fmt:
+ * @timet:
+ *
+ * this is just an alias for strftime(3), so we can use that without
+ * getting warning from gcc
+ *
+ * Returns: a formatted string of max length @max in @s
+ */
+size_t modest_text_utils_strftime(char *s, size_t max, const char *fmt, time_t timet);
+
+/**
+ * modest_text_utils_hyperlinkify:
+ * @string_buffer: buffer where we replace uri strings with links
+ *
+ * Replace uri's with links in the buffer. This is required that the document
+ * do not contain linkified links already.
+ */
+void modest_text_utils_hyperlinkify (GString *string_buffer);
+
+/**
+ * modest_text_utils_get_display_address:
+ * @address: original address (UTF8 string)
+ *
+ * make a 'display address' from an address:
+ * "Foo Bar <foo@bar.cx>" --> "Foo Bar"
+ * ie. removes "<...>" parts
+ * the change is in-place; removes leading whitespace
+ *
+ * NOTE: for optimization reasons, this function changes @address
+ * in-place
+ */
+void modest_text_utils_get_display_address (gchar *address);
+
+/**
+ * modest_text_utils_get_email_address:
+ * @full_address: original address (UTF8 string)
+ *
+ * make a 'foo@bar.cx' from an address:
+ * "Foo Bar <foo@bar.cx> (Bla)" --> "foo@bar.cx"
+ * If no "<...>" is found, then it returns the full
+ * strings.
+ *
+ * Returns: a newly allocated string with the copy.
+ *
+ * NULL in case of error or if address == NULL
+ */
+gchar* modest_text_utils_get_email_address (const gchar *email_address);
+
+
+/**
+ * modest_text_utils_get_subject_prefix_len:
+ * @subject: original subject (UTF8 string)
+ *
+ * determine the length of the "Re:/RE:/Fwd:" prefix in an e-mail address
+ *
+ * Returns: the length of the prefix, or 0 if there is none