aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-popup.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2003-12-03 08:27:52 +0800
committerMichael Zucci <zucchi@src.gnome.org>2003-12-03 08:27:52 +0800
commit33efd90a82fbbbfb3f7645a149cfbfed471596fb (patch)
tree585cb9db9a30643a658bcf7564ded0b2d7cb928e /mail/em-popup.c
parentccd5cdcf82c299aba622da4f5f87347aea93d99c (diff)
downloadgsoc2013-evolution-33efd90a82fbbbfb3f7645a149cfbfed471596fb.tar
gsoc2013-evolution-33efd90a82fbbbfb3f7645a149cfbfed471596fb.tar.gz
gsoc2013-evolution-33efd90a82fbbbfb3f7645a149cfbfed471596fb.tar.bz2
gsoc2013-evolution-33efd90a82fbbbfb3f7645a149cfbfed471596fb.tar.lz
gsoc2013-evolution-33efd90a82fbbbfb3f7645a149cfbfed471596fb.tar.xz
gsoc2013-evolution-33efd90a82fbbbfb3f7645a149cfbfed471596fb.tar.zst
gsoc2013-evolution-33efd90a82fbbbfb3f7645a149cfbfed471596fb.zip
changed to setup the rule part properly, it could never have worked. Bug
2003-12-03 Not Zed <NotZed@Ximian.com> * mail-autofilter.c (rule_match_thread): changed to setup the rule part properly, it could never have worked. Bug #51601. * em-popup.c (emp_uri_popup_address_add): implement. * em-folder-view.c (emfv_popup_add_sender): implement. (emfv_add_sender_addressbook): hook up to above func. * em-utils.c (em_utils_add_address): implementation to add an email address to the addressbook. (emu_add_address_cb): callback required for funny api. Bug #51321. svn path=/trunk/; revision=23592
Diffstat (limited to 'mail/em-popup.c')
-rw-r--r--mail/em-popup.c14
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[] = {