aboutsummaryrefslogtreecommitdiffstats
path: root/camel
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 /camel
parentc2f952971ba1362587fa6b9ed5e4b916e14d13ab (diff)
downloadgsoc2013-evolution-2067796514a4273959cc478a252932f6db1b2d2d.tar
gsoc2013-evolution-2067796514a4273959cc478a252932f6db1b2d2d.tar.gz
gsoc2013-evolution-2067796514a4273959cc478a252932f6db1b2d2d.tar.bz2
gsoc2013-evolution-2067796514a4273959cc478a252932f6db1b2d2d.tar.lz
gsoc2013-evolution-2067796514a4273959cc478a252932f6db1b2d2d.tar.xz
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 'camel')
-rw-r--r--camel/ChangeLog5
-rw-r--r--camel/camel-mime-message.c8
2 files changed, 12 insertions, 1 deletions
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 <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-29 Jeffrey Stedfast <fejj@ximian.com>
* 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 <stdio.h>
#include <string.h>
+#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 *