From 0a8d4d5736c8cceda74e7134a6ff446fbee1d5cc Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Tue, 21 May 2002 19:46:13 +0000 Subject: Message.getaddrlist(): Use the AddressList.addresslist attribute instead of calling the getaddrlist() method, since the latter doesn't work with multiple calls (it will return the empty list for the second and subsequent calls). Closes SF bug #555035. Include a unittest. --- Lib/rfc822.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/rfc822.py') diff --git a/Lib/rfc822.py b/Lib/rfc822.py index aa58f1889e..826269fe1a 100644 --- a/Lib/rfc822.py +++ b/Lib/rfc822.py @@ -352,7 +352,7 @@ class Message: raw.append(addr) alladdrs = ''.join(raw) a = AddressList(alladdrs) - return a.getaddrlist() + return a.addresslist def getdate(self, name): """Retrieve a date field from a header. -- cgit v1.2.1