* Added an email validation function
[modest] / src / modest-text-utils.h
index 08e57db..e294442 100644 (file)
@@ -169,7 +169,7 @@ gchar* modest_text_utils_get_display_address (gchar *address);
  * 
  * Returns: the length of the  prefix, or 0 if there is none
  */
-gint modest_text_utils_get_subject_prefix_len (const gchar *sub);
+gint modest_text_utils_get_subject_prefix_len (const gchar *subject);
 
 
 /**
@@ -200,4 +200,15 @@ gint modest_text_utils_utf8_strcmp (const gchar* s1, const gchar *s2, gboolean i
  */
 const gchar* modest_text_utils_get_display_date (time_t date);
 
+
+/**
+ * modest_text_utils_validate_email_address:
+ * @email_address: a string
+ * 
+ * validates the email address passed as argument
+ * 
+ * Returns: TRUE if the address is valid, FALSE otherwise
+ **/
+gboolean     modest_text_utils_validate_email_address (const gchar *email_address);
+
 #endif /* __MODEST_TEXT_UTILS_H__ */