Commit fa348c87 authored by Barry Warsaw's avatar Barry Warsaw

getaddrlist(): Make sure this consumes all the data, and if there is

no address there (perhaps because of invalid characters, it appends
('', '') to the result set.

Closes mimelib SF bug # 697641.
parent c2ca32d9
No related merge requests found
......@@ -196,12 +196,12 @@ class AddrlistClass:
Returns a list containing all of the addresses.
"""
result = []
while True:
while self.pos < len(self.field):
ad = self.getaddress()
if ad:
result += ad
else:
break
result.append(('', ''))
return result
def getaddress(self):
......
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