webmail: recognize multiple urls in List-Post addresses

there may be a http(s)-address, which we'll ignore. the mailto may come after
that. like in google groups.
This commit is contained in:
Mechiel Lukkien
2024-04-16 19:37:37 +02:00
parent 8654a1f901
commit 8bcce40c55
2 changed files with 25 additions and 16 deletions

View File

@ -45,5 +45,6 @@ func TestParseListPostAddress(t *testing.T) {
check("<mailto:moderator@host.com> (Postings are Moderated)", &MessageAddress{User: "moderator", Domain: dns.Domain{ASCII: "host.com"}})
check("<mailto:moderator@host.com?subject=list%20posting>", &MessageAddress{User: "moderator", Domain: dns.Domain{ASCII: "host.com"}})
check("NO (posting not allowed on this list)", nil)
check("<https://groups.google.com/group/golang-dev/post>, <mailto:golang-dev@googlegroups.com>", &MessageAddress{User: "golang-dev", Domain: dns.Domain{ASCII: "googlegroups.com"}})
check("", nil)
}