Commits

Christian Ebert committed 6e0f4c9

urlcollector: do without keyword arguments for msgharvest

  • Participants
  • Parent commits 9d5d423

Comments (0)

Files changed (1)

File muttils/urlcollector.py

                 pairs = email.Utils.getaddresses(vals)
                 self.items += [addr for rname, addr in pairs if addr]
 
-    def msgharvest(self, msg, strings=None):
-        sl = strings or []
+    def msgharvest(self, msg):
+        sl = []
         if self.ui.proto != 'mid':
             if self.ui.proto in ('all', 'mailto'):
                 self.getaddr(msg, 'from', 'to', 'reply-to', 'cc', 'sender',
                 while msg is not None:
                     msg = mbox.next()
                     if msg:
-                        sl = self.msgharvest(msg, sl)
+                        sl += self.msgharvest(msg)
         finally:
             fp.close()
         return '\n'.join(sl)