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:
Returns a list containing all of the addresses.
"""
ad = self.getaddress()
if ad:
return ad + self.getaddrlist()
else: return []
result = []
while 1:
ad = self.getaddress()
if ad:
result += ad
else:
break
return result
def getaddress(self):
"""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