[Commits] [SCM] claws branch, master, updated. 3.15.0-27-g7c4f81f

ticho at claws-mail.org ticho at claws-mail.org
Sat Apr 15 19:43:14 CEST 2017


The branch, master has been updated
       via  7c4f81fda66588664a88ffc31f99daaaf1a1fc56 (commit)
      from  73d48910780a64de0deec8fe59e87318618f049a (commit)

Summary of changes:
 src/filtering.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)


- Log -----------------------------------------------------------------
commit 7c4f81fda66588664a88ffc31f99daaaf1a1fc56
Author: Andrej Kacian <ticho at claws-mail.org>
Date:   Sat Apr 15 19:41:48 2017 +0200

    Fix 'add_to_addressbook' filtering action to correctly add the name.

diff --git a/src/filtering.c b/src/filtering.c
index e4f3d01..05cef1d 100644
--- 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

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list