Commits

Cameron Simpson  committed b91f038

cs.appmaildb: MailDB.addrtexts_to_AddressNodes: change signature from (self, addrtexts) to (self, *addrtexts)

  • Participants
  • Parent commits 5b5aa2b

Comments (0)

Files changed (1)

File lib/python/cs/app/maildb.py

     '''
     return self.get( ('MESSAGE', message_id), doCreate=True)
 
-  def addrtexts_to_AddressNodes(self, addrtexts):
+  def addrtexts_to_AddressNodes(self, *addrtexts):
     return [ self.getAddressNode( (realname, addr), doCreate=True)
              for realname, addr
              in getaddresses(addrtexts)
     M.SUBJECT = msg['subject']
     if 'date' in msg:
       M.DATE = msg['date']
-    M.FROMs = self.addrtexts_to_AddressNodes(msg.get_all('from', []))
+    M.FROMs = self.addrtexts_to_AddressNodes(*msg.get_all('from', []))
     addrs = {}
     M.RECIPIENTS = self.addrtexts_to_AddressNodes(
-                       chain( msg.get_all(hdr, [])
-                              for hdr
-                              in ('to', 'cc', 'bcc', 'resent-to', 'resent-cc')
-                            )
+                       *chain( msg.get_all(hdr, [])
+                               for hdr
+                               in ('to', 'cc', 'bcc', 'resent-to', 'resent-cc')
+                             )
                      )
     refhdr = None
     try: