1.1 --- a/imiptools/handlers/__init__.py Sat Oct 17 19:08:30 2015 +0200
1.2 +++ b/imiptools/handlers/__init__.py Sat Oct 17 19:15:22 2015 +0200
1.3 @@ -83,13 +83,25 @@
1.4
1.5 """
1.6 Record a result having the given 'method', 'outgoing_recipients' and
1.7 - message part.
1.8 + message 'part'.
1.9 """
1.10
1.11 if outgoing_recipients:
1.12 self.outgoing_methods.add(method)
1.13 self.results.append((outgoing_recipients, part))
1.14
1.15 + def add_results(self, methods, outgoing_recipients, parts):
1.16 +
1.17 + """
1.18 + Record results having the given 'methods', 'outgoing_recipients' and
1.19 + message 'parts'.
1.20 + """
1.21 +
1.22 + if outgoing_recipients:
1.23 + self.outgoing_methods.update(methods)
1.24 + for part in parts:
1.25 + self.results.append((outgoing_recipients, part))
1.26 +
1.27 def get_results(self):
1.28 return self.results
1.29