mu-msg-sexp: Improve list-post regexp
This should catch some more addresses. Fixes: #1909.
This commit is contained in:
@ -79,8 +79,8 @@ add_list_post (Sexp::List& list, MuMsg *msg)
|
|||||||
if (!list_post)
|
if (!list_post)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
rx = g_regex_new ("<?mailto:([a-z0-9%+@._-]+)>?", G_REGEX_CASELESS,
|
rx = g_regex_new ("<?mailto:([a-z0-9!@#$%&'*+-/=?^_`{|}~]+)>?",
|
||||||
(GRegexMatchFlags)0, NULL);
|
G_REGEX_CASELESS, (GRegexMatchFlags)0, NULL);
|
||||||
g_return_if_fail(rx);
|
g_return_if_fail(rx);
|
||||||
|
|
||||||
if (g_regex_match (rx, list_post, (GRegexMatchFlags)0, &minfo)) {
|
if (g_regex_match (rx, list_post, (GRegexMatchFlags)0, &minfo)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user