1.1 --- a/imiptools/__init__.py Wed Sep 02 17:53:31 2015 +0200
1.2 +++ b/imiptools/__init__.py Thu Sep 03 17:28:00 2015 +0200
1.3 @@ -73,7 +73,7 @@
1.4 """
1.5
1.6 msg = message_from_file(f)
1.7 - senders = get_addresses(msg.get_all("Reply-To") or msg.get_all("From") or [])
1.8 + senders = get_addresses(get_all_values(msg, "Reply-To") or get_all_values(msg, "From") or [])
1.9
1.10 messenger = self.messenger
1.11 store = self.get_store()
1.12 @@ -236,7 +236,9 @@
1.13 # Check for participating recipients. Non-participating recipients will
1.14 # have their messages left as being unhandled.
1.15
1.16 - if self.is_participating():
1.17 + # Note that no user is set for outgoing messages.
1.18 +
1.19 + if outgoing_only or self.is_participating():
1.20
1.21 # Check for returned messages.
1.22