aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-html-utils.h
diff options
context:
space:
mode:
authorJon Trowbridge <trow@ximian.com>2001-03-31 02:05:48 +0800
committerJon Trowbridge <trow@src.gnome.org>2001-03-31 02:05:48 +0800
commit2067796514a4273959cc478a252932f6db1b2d2d (patch)
tree3fecced618ee8e85f6f742145f46d2b5eb46ab7c /e-util/e-html-utils.h
parentc2f952971ba1362587fa6b9ed5e4b916e14d13ab (diff)
downloadgsoc2013-evolution-2067796514a4273959cc478a252932f6db1b2d2d.tar.gz
gsoc2013-evolution-2067796514a4273959cc478a252932f6db1b2d2d.tar.zst
gsoc2013-evolution-2067796514a4273959cc478a252932f6db1b2d2d.zip
Add support for converting e-mail addresses to links. (is_email_address):
2001-03-30 Jon Trowbridge <trow@ximian.com> * e-html-utils.c (e_text_to_html_full): Add support for converting e-mail addresses to links. (is_email_address): Added. Identifies e-mail addresses. (email_address_extract): Added. Extracts a copy of the e-mail address from the text. * e-html-utils.h (E_TEXT_TO_HTML_CONVERT_ADDRESSES): Added. * e-url.c (e_url_shroud): Added. Copy a url, replacing any plaintext passwords with a single *. (e_url_equal): Compare two urls, taking into account that they may or may not be shrouded. 2001-03-30 Jon Trowbridge <trow@ximian.com> * camel-mime-message.c (camel_mime_message_set_source): Shrould our source URL before putting it into X-Evolution-Source. 2001-03-30 Jon Trowbridge <trow@ximian.com> * mail-display.c (mail_text_write): Add (commented-out) E_TEXT_TO_HTML_CONVERT_ADDRESSES. * mail-config.c (mail_config_get_account_by_source_url): Call e_url_equal to compare URLs. svn path=/trunk/; revision=9050
Diffstat (limited to 'e-util/e-html-utils.h')
-rw-r--r--e-util/e-html-utils.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/e-util/e-html-utils.h b/e-util/e-html-utils.h
index 346446956c..e95ca6e24a 100644
--- a/e-util/e-html-utils.h
+++ b/e-util/e-html-utils.h
@@ -25,11 +25,12 @@
#include <glib.h>
-#define E_TEXT_TO_HTML_PRE (1 << 0)
-#define E_TEXT_TO_HTML_CONVERT_NL (1 << 1)
-#define E_TEXT_TO_HTML_CONVERT_SPACES (1 << 2)
-#define E_TEXT_TO_HTML_CONVERT_URLS (1 << 3)
-#define E_TEXT_TO_HTML_MARK_CITATION (1 << 4)
+#define E_TEXT_TO_HTML_PRE (1 << 0)
+#define E_TEXT_TO_HTML_CONVERT_NL (1 << 1)
+#define E_TEXT_TO_HTML_CONVERT_SPACES (1 << 2)
+#define E_TEXT_TO_HTML_CONVERT_URLS (1 << 3)
+#define E_TEXT_TO_HTML_MARK_CITATION (1 << 4)
+#define E_TEXT_TO_HTML_CONVERT_ADDRESSES (1 << 5)
char *e_text_to_html_full (const char *input, unsigned int flags, guint32 color);
char *e_text_to_html (const char *input, unsigned int flags);