#define __MODEST_TEXT_UTILS_H__
#include <time.h>
+#include <glib.h>
/**
* modest_text_utils_derived_subject:
size_t modest_text_utils_strftime(char *s, size_t max, const char *fmt, const struct tm *tm);
+
+/**
+ * modest_text_utils_display_addres:
+ * @address: original address (UTF8 string)
+ *
+ * make a 'display address' from an address:
+ * "Foo Bar <foo@bar.cx> (Bla)" --> "Foo Bar"
+ * ie. removes "<...>" and "(...)" parts
+ * the change is in-place; removes leading/trailing whitespace
+ *
+ * Returns: the new address. The string is *not* newly allocated.
+ * NULL in case of error
+ */
+gchar* modest_text_utils_display_address (gchar *address);
+
+
#endif /* __MODEST_TEXT_UTILS_H__ */