Commit 2ea2b113 authored by Barry Warsaw's avatar Barry Warsaw

AddrlistClass.getdomainliteral(): rfc822 requires that the domain

literal be wrapped in square brackets.  This fix replaces the square
brackets that were previously being stripped off.  Closes SF bug
#110621.
parent ee76f0b2
......@@ -703,7 +703,7 @@ class AddrlistClass:
def getdomainliteral(self):
"""Parse an RFC-822 domain-literal."""
return self.getdelimited('[', ']\r', 0)
return '[%s]' % self.getdelimited('[', ']\r', 0)
def getatom(self):
"""Parse an RFC-822 atom."""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment