mu: fix list-post email regexp
'_' is valid in email addresses. Fix courtesy of jaknel; fixes #1529.
This commit is contained in:
@ -178,7 +178,7 @@ maybe_append_list_post_as_reply_to (GString *gstr, MuMsg *msg)
|
||||
if (!list_post)
|
||||
return;
|
||||
|
||||
rx = g_regex_new ("^(<?mailto:)?([a-z0-9%+@.-]+)>?", G_REGEX_CASELESS, 0, NULL);
|
||||
rx = g_regex_new ("^(<?mailto:)?([a-z0-9%+@._-]+)>?", G_REGEX_CASELESS, 0, NULL);
|
||||
g_return_if_fail(rx);
|
||||
|
||||
if (g_regex_match (rx, list_post, 0, &minfo)) {
|
||||
|
||||
Reference in New Issue
Block a user