aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorJesse Pavel <jpavel@src.gnome.org>2000-11-07 07:07:19 +0800
committerJesse Pavel <jpavel@src.gnome.org>2000-11-07 07:07:19 +0800
commit304ec439aef185a16c52ac1e22b9d6e723845ad2 (patch)
treee0b3bc5d2c0167c48a3eabb02e71b15229b9e093 /mail
parent3729117ec62a483b1ddc59d6a1dd4167694cde2b (diff)
downloadgsoc2013-evolution-304ec439aef185a16c52ac1e22b9d6e723845ad2.tar.gz
gsoc2013-evolution-304ec439aef185a16c52ac1e22b9d6e723845ad2.tar.zst
gsoc2013-evolution-304ec439aef185a16c52ac1e22b9d6e723845ad2.zip
used Camel to parse the full address before passing the email address to
* mail-display.c: used Camel to parse the full address before passing the email address to my iTip control. svn path=/trunk/; revision=6462
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog5
-rw-r--r--mail/mail-display.c14
2 files changed, 18 insertions, 1 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index d62d50893e..e9c87baaae 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,8 @@
+2000-11-06 Jesse Pavel <jpavel@helixcode.com>
+
+ * mail-display.c: used Camel to parse the full address before passing
+ the email address to my iTip control.
+
2000-11-06 Dan Winship <danw@helixcode.com>
First draft of folder tree unread message indication for /local
diff --git a/mail/mail-display.c b/mail/mail-display.c
index 1650deca1e..6ac113414b 100644
--- a/mail/mail-display.c
+++ b/mail/mail-display.c
@@ -554,12 +554,24 @@ on_object_requested (GtkHTML *html, GtkHTMLEmbedded *eb, gpointer data)
the iTip control, and it needs only the From email address,
but perhaps in the future we can generalize this section of code
to pass a bunch of useful things to all embedded controls. */
+
+ CamelInternetAddress *ia;
+ const char *addr;
+ const char *name;
CORBA_exception_init (&ev);
- from_address = camel_mime_message_get_from (md->current_message);
+ ia = camel_internet_address_new ();
+ addr = camel_mime_message_get_from (md->current_message);
+ camel_address_decode (CAMEL_ADDRESS (ia), (const char *) addr);
+
+ camel_internet_address_get (ia, 0, &name, &from_address);
+
bonobo_property_bag_client_set_value_string (prop_bag, "from_address",
from_address, &ev);
+
+ camel_object_unref (CAMEL_OBJECT (ia));
+
CORBA_exception_free (&ev);
}
}