aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/ChangeLog3
-rw-r--r--mail/mail-display.c7
2 files changed, 5 insertions, 5 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index fa568e9591..34da182243 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,5 +1,8 @@
2000-04-22 Dan Winship <danw@helixcode.com>
+ * mail-display.c (on_url_requested): Change cid expectations to
+ match current camel reality.
+
* main.c (main): call glade_gnome_init, for composer.
* folder-browser-factory.c: move msg_composer_cb and
diff --git a/mail/mail-display.c b/mail/mail-display.c
index 289b132a2a..e0eb584a17 100644
--- a/mail/mail-display.c
+++ b/mail/mail-display.c
@@ -258,7 +258,7 @@ static void
on_url_requested (GtkHTML *html, const char *url, GtkHTMLStreamHandle handle,
gpointer user_data)
{
- char *cid, buf[1024];
+ char buf[1024];
int nread;
CamelMimePart *part;
CamelDataWrapper *data;
@@ -270,10 +270,7 @@ on_url_requested (GtkHTML *html, const char *url, GtkHTMLStreamHandle handle,
part = gtk_object_get_data (GTK_OBJECT (html), "message");
g_return_if_fail (part != NULL);
- cid = g_strdup_printf ("<%s>", url + 4);
- part = find_cid (cid, part);
- g_free (cid);
-
+ part = find_cid (url + 4, part);
if (!part)
return;