diff options
| author | Dirk-Jan C. Binnema <djcb@djcbsoftware.nl> | 2021-01-23 17:43:18 +0200 |
|---|---|---|
| committer | Dirk-Jan C. Binnema <djcb@djcbsoftware.nl> | 2021-01-23 17:43:18 +0200 |
| commit | 61d61566abc041c744465e5f66740b49f20be6b4 (patch) | |
| tree | 0546d3125e8d32326a2664f9c35672bd547e2690 | |
| parent | 4abfc8d2a471c6a0da6b199e6d185cf2bcd78e6d (diff) | |
mu-msg-sexp: Improve list-post regexp
This should catch some more addresses.
| -rw-r--r-- | lib/mu-msg-sexp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/mu-msg-sexp.c b/lib/mu-msg-sexp.c index 0d1ab46..359ae22 100644 --- a/lib/mu-msg-sexp.c +++ b/lib/mu-msg-sexp.c @@ -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)) { |
