1.1 --- a/imiptools/__init__.py Fri Aug 21 14:47:53 2015 +0200
1.2 +++ b/imiptools/__init__.py Sat Aug 29 00:14:32 2015 +0200
1.3 @@ -233,18 +233,23 @@
1.4 for name, cls in self.handlers])
1.5 handled = False
1.6
1.7 - # Check for returned messages.
1.8 + # Check for participating recipients. Non-participating recipients will
1.9 + # have their messages left as being unhandled.
1.10 +
1.11 + if self.is_participating():
1.12 +
1.13 + # Check for returned messages.
1.14
1.15 - for part in msg.walk():
1.16 - if part.get_content_type() == "message/delivery-status":
1.17 - break
1.18 - else:
1.19 for part in msg.walk():
1.20 - if part.get_content_type() in itip_content_types and \
1.21 - part.get_param("method"):
1.22 + if part.get_content_type() == "message/delivery-status":
1.23 + break
1.24 + else:
1.25 + for part in msg.walk():
1.26 + if part.get_content_type() in itip_content_types and \
1.27 + part.get_param("method"):
1.28
1.29 - handle_itip_part(part, handlers)
1.30 - handled = True
1.31 + handle_itip_part(part, handlers)
1.32 + handled = True
1.33
1.34 # When processing outgoing messages, no replies or deliveries are
1.35 # performed.
1.36 @@ -302,7 +307,6 @@
1.37 # Determine whether to wrap, accompany or replace the message.
1.38
1.39 prefs = self.get_preferences()
1.40 -
1.41 incoming = prefs.get("incoming")
1.42
1.43 if incoming == "message-only":