talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 9123296406a1f61f21464ca8fd439d315b4c8367
parent d21adbda39220af55d316f864b4aa4c7631d09eb
Author: Ricardo Mones <ricardo@mones.org>
Date:   Sat, 10 Dec 2016 13:32:41 +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.

Diffstat:
Msrc/prefs_template.c | 10----------
1 file changed, 0 insertions(+), 10 deletions(-)

diff --git 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;