mu-msg-sexp: Improve list-post regexp

This should catch some more addresses.

Fixes: #1909.
This commit is contained in:
Dirk-Jan C. Binnema 2021-01-22 19:30:28 +02:00
parent 250b26428f
commit 3db19ce92b
1 changed files with 2 additions and 2 deletions

View File

@ -79,8 +79,8 @@ add_list_post (Sexp::List& list, MuMsg *msg)
if (!list_post)
return;
rx = g_regex_new ("<?mailto:([a-z0-9%+@._-]+)>?", G_REGEX_CASELESS,
(GRegexMatchFlags)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, (GRegexMatchFlags)0, &minfo)) {