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.
""" """
result = []
while 1:
ad = self.getaddress() ad = self.getaddress()
if ad: if ad:
return ad + self.getaddrlist() result += ad
else: return [] 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