commit 7c4f81fda66588664a88ffc31f99daaaf1a1fc56
parent 73d48910780a64de0deec8fe59e87318618f049a
Author: Andrej Kacian <ticho@claws-mail.org>
Date: Sat, 15 Apr 2017 19:41:48 +0200
Fix 'add_to_addressbook' filtering action to correctly add the name.
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/filtering.c b/src/filtering.c
@@ -510,15 +510,15 @@ static gboolean filteringaction_apply(FilteringAction * action, MsgInfo * info)
path = action->destination;
start_address_completion(path);
- address_list = address_list_append(address_list, header->body);
+ address_list = g_slist_append(address_list, header->body);
for (walk = address_list; walk != NULL; walk = walk->next) {
gchar *stripped_addr = g_strdup(walk->data);
extract_address(stripped_addr);
if (complete_matches_found(walk->data) == 0) {
gchar *name = procheader_get_fromname(walk->data);
- debug_print("adding address '%s' to addressbook '%s'\n",
- stripped_addr, action->destination);
+ debug_print("adding '%s <%s>' to addressbook '%s'\n",
+ name, stripped_addr, action->destination);
#ifndef USE_ALT_ADDRBOOK
if (!addrbook_add_contact(abf, folder, name, stripped_addr, NULL)) {
#else