[Commits] [SCM] claws branch, master, updated. 3.9.3-39-geeb18db

mones at claws-mail.org mones at claws-mail.org
Fri Mar 14 08:55:18 CET 2014


The branch master of project "claws" (Claws Mail) has been updated
       via  eeb18db35ed1136568ae802b2fb7445315471025 (commit)
      from  85b3665d99974d39ac1928e8d49daf93e78724d6 (commit)


- Log -----------------------------------------------------------------
commit eeb18db35ed1136568ae802b2fb7445315471025
Author: Christian Hesse <mail at eworm.de>
Date:   Thu Mar 13 15:03:39 2014 +0100

    Fix bug #3109 “libravatar: make mail address lower case before hashing MD5”
    
    Thanks again Christian Hesse for the patch!

diff --git a/src/plugins/libravatar/libravatar.c b/src/plugins/libravatar/libravatar.c
index 843ffb4..ef9219e 100644
--- a/src/plugins/libravatar/libravatar.c
+++ b/src/plugins/libravatar/libravatar.c
@@ -58,8 +58,15 @@ static gboolean libravatar_header_update_hook(gpointer source, gpointer data)
 	debug_print("libravatar avatar_header_update invoked\n");
 
 	if (!strcmp(acd->header, "From:")) {
-		gchar *a = g_strdup(acd->content);
+		gchar *a, *lower;
+
+		a = g_strdup(acd->content);
 		extract_address(a);
+
+		/* string to lower */
+		for (lower = a; *lower; lower++)
+			*lower = g_ascii_tolower(*lower);
+
 		debug_print("libravatar added '%s'\n", a);
 		procmsg_msginfo_add_avatar(acd->msginfo, AVATAR_LIBRAVATAR, a);
 	}

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

Summary of changes:
 src/plugins/libravatar/libravatar.c |    9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list