[Commits] [SCM] claws branch, master, updated. 3.14.1-32-g9123296

mones at claws-mail.org mones at claws-mail.org
Sat Dec 10 13:33:15 CET 2016


The branch, master has been updated
       via  9123296406a1f61f21464ca8fd439d315b4c8367 (commit)
      from  d21adbda39220af55d316f864b4aa4c7631d09eb (commit)

Summary of changes:
 src/prefs_template.c |   10 ----------
 1 file changed, 10 deletions(-)


- Log -----------------------------------------------------------------
commit 9123296406a1f61f21464ca8fd439d315b4c8367
Author: Ricardo Mones <ricardo at mones.org>
Date:   Sat Dec 10 13:32:41 2016 +0100

    Fix bug #3574: Template addressing
    
    Remove artificial limitations to values of email addresses on templates:
    these strings are already parsed and split when the template is applied
    in compose window.

diff --git a/src/prefs_template.c b/src/prefs_template.c
index c095ec4..9e2f28e 100644
--- a/src/prefs_template.c
+++ b/src/prefs_template.c
@@ -716,16 +716,6 @@ gboolean prefs_template_string_is_valid(gchar *string, gint *line, gboolean esca
 				*line = quote_fmt_get_line();
 			return FALSE;
 		}
-		if (email) {
-			const gchar *start = strrchr(parsed_buf, '<');
-			const gchar *end = strrchr(parsed_buf, '>');
-			const gchar *at = strrchr(parsed_buf, '@');
-			const gchar *space = strrchr(parsed_buf, ' ');
-			if (!at)
-				result = FALSE;
-			if (at && space && (!start || !end || end < start || start < space))
-				result = FALSE;
-		}
 		quote_fmt_reset_vartable();
 	}
 	return result;

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list