Commit f1fd282f authored by Barry Warsaw's avatar Barry Warsaw

Fix for bug #481221, getaddrlist() failing on long addresses.

parent 3ca656f1
...@@ -546,10 +546,14 @@ class AddrlistClass: ...@@ -546,10 +546,14 @@ class AddrlistClass:
Returns a list containing all of the addresses. Returns a list containing all of the addresses.
""" """
ad = self.getaddress() result = []
if ad: while 1:
return ad + self.getaddrlist() ad = self.getaddress()
else: return [] if ad:
result += ad
else:
break
return result
def getaddress(self): def getaddress(self):
"""Parse the next address.""" """Parse the next address."""
......
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