1.1 --- a/imiptools/__init__.py Tue Oct 03 21:36:04 2017 +0200
1.2 +++ b/imiptools/__init__.py Tue Oct 03 21:36:58 2017 +0200
1.3 @@ -362,12 +362,10 @@
1.4 # Handle parts.
1.5
1.6 for part in msg.walk():
1.7 - if have_itip_part(part):
1.8 - if self.debug:
1.9 - print >>sys.stderr, "Handle method %s..." % part.get_param("method")
1.10 + if self.debug and have_itip_part(part):
1.11 + print >>sys.stderr, "Handle method %s..." % part.get_param("method")
1.12
1.13 - handle_itip_part(part, handlers)
1.14 - handled = True
1.15 + handled = handle_itip_part(part, handlers) or handled
1.16
1.17 # When processing outgoing messages, no replies or deliveries are
1.18 # performed.