From 2067796514a4273959cc478a252932f6db1b2d2d Mon Sep 17 00:00:00 2001 From: Jon Trowbridge Date: Fri, 30 Mar 2001 18:05:48 +0000 Subject: Add support for converting e-mail addresses to links. (is_email_address): 2001-03-30 Jon Trowbridge * 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 * 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 * 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 --- camel/ChangeLog | 5 +++++ camel/camel-mime-message.c | 8 +++++++- 2 files changed, 12 insertions(+), 1 deletion(-) (limited to 'camel') diff --git a/camel/ChangeLog b/camel/ChangeLog index 1b0ea88d07..b97bf87e1f 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,8 @@ +2001-03-30 Jon Trowbridge + + * camel-mime-message.c (camel_mime_message_set_source): Shrould + our source URL before putting it into X-Evolution-Source. + 2001-03-29 Jeffrey Stedfast * providers/imap/camel-imap-store.c (get_folder_info): Don't diff --git a/camel/camel-mime-message.c b/camel/camel-mime-message.c index 1437744260..1977c3419b 100644 --- a/camel/camel-mime-message.c +++ b/camel/camel-mime-message.c @@ -32,6 +32,8 @@ #include #include +#include "e-util/e-url.h" + #include "camel-mime-message.h" #include "camel-multipart.h" #include "camel-stream-mem.h" @@ -404,8 +406,12 @@ camel_mime_message_set_recipients(CamelMimeMessage *mime_message, const char *ty void camel_mime_message_set_source(CamelMimeMessage *mime_message, const char *src) { + char *shrouded_src; g_assert (mime_message); - camel_medium_add_header (CAMEL_MEDIUM (mime_message), "X-Evolution-Source", src); + + shrouded_src = e_url_shroud (src); + camel_medium_add_header (CAMEL_MEDIUM (mime_message), "X-Evolution-Source", shrouded_src); + g_free (shrouded_src); } const char * -- cgit v1.2.3