X-Git-Url: http://git.claws-mail.org/?p=claws.git;a=blobdiff_plain;f=src%2Fprefs_template.c;h=9e2f28e719b39716d71255dd007031185598dcca;hp=c095ec45e29e30c9a866dd957bc8c7b358b577fb;hb=9123296406a1f61f21464ca8fd439d315b4c8367;hpb=d21adbda39220af55d316f864b4aa4c7631d09eb;ds=sidebyside diff --git a/src/prefs_template.c b/src/prefs_template.c index c095ec45e..9e2f28e71 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;