mu-msg-sexp: Improve list-post regexp

This should catch some more addresses.
This commit is contained in:
Dirk-Jan C. Binnema 2021-01-23 17:43:18 +02:00
parent 4abfc8d2a4
commit 61d61566ab
1 changed files with 2 additions and 1 deletions

View File

@ -177,7 +177,8 @@ maybe_append_list_post (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, (GRegexMatchFlags)0, NULL);
g_return_if_fail(rx);
if (g_regex_match (rx, list_post, 0, &minfo)) {