New address book.
[claws.git] / src / textview.c
index dbed263f1643e9b478c77a08c439a8cb6716a196..1ab32234f2475dcaa336d937c1df32fc925443d7 100644 (file)
@@ -1271,7 +1271,8 @@ static void textview_button_pressed(GtkWidget *widget, GdkEventButton *event,
                                                fromname = procheader_get_fromname(fromaddress);
                                                extract_address(fromaddress);
                                                g_message("adding from textview %s <%s>", fromname, fromaddress);
-                                               addressbook_add_submenu(NULL, fromname, fromaddress, NULL);
+                                               // Add to address book - Match
+                                               addressbook_add_contact( fromname, fromaddress, NULL );
                                                g_free(fromaddress);
                                                g_free(fromname);
                                        } else {