mu: fix list-post email regexp

'_' is valid in email addresses.

Fix courtesy of jaknel; fixes #1529.
This commit is contained in:
Dirk-Jan C. Binnema 2019-12-22 15:00:33 +02:00
parent 9f93526884
commit b1d4c5af79
1 changed files with 1 additions and 1 deletions

View File

@ -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)) {