mirror of
https://github.com/mjl-/mox.git
synced 2025-07-12 11:44:38 +03:00
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:
@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user