diff options
Diffstat (limited to 'mail/em-popup.c')
-rw-r--r-- | mail/em-popup.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/mail/em-popup.c b/mail/em-popup.c index 760aed48d5..8312be3770 100644 --- a/mail/em-popup.c +++ b/mail/em-popup.c @@ -22,6 +22,7 @@ #include <camel/camel-folder.h> #include <camel/camel-mime-message.h> #include <camel/camel-string-utils.h> +#include <camel/camel-url.h> static void emp_standard_menu_factory(EMPopup *emp, EMPopupTarget *target, void *data); @@ -678,7 +679,18 @@ emp_uri_popup_address_send (GtkWidget *w, EMPopupTarget *t) static void emp_uri_popup_address_add(GtkWidget *w, EMPopupTarget *t) { - printf("UNIMPLEMENTED: Add address '%s'\n", t->data.uri); + CamelURL *url; + + url = camel_url_new(t->data.uri, NULL); + if (url == NULL) { + g_warning("cannot parse url '%s'", t->data.uri); + return; + } + + if (url->path && url->path[0]) + em_utils_add_address(w, url->path); + + camel_url_free(url); } static EMPopupItem emp_standard_uri_popups[] = { |