# HG changeset patch # User Paul Boddie # Date 1413985610 -7200 # Node ID 8d4735b2bac7494e2f78b7d7cf3275b059e4d885 # Parent f3ad4ca7727be141f2047f6729097b06cbcf3f4a Fixed imports, added/tidied comments. diff -r f3ad4ca7727b -r 8d4735b2bac7 imiptools/__init__.py --- a/imiptools/__init__.py Wed Oct 22 15:45:00 2014 +0200 +++ b/imiptools/__init__.py Wed Oct 22 15:46:50 2014 +0200 @@ -5,7 +5,6 @@ from email.mime.text import MIMEText from smtplib import SMTP from imiptools.content import handle_itip_part -import imip_resource import sys MESSAGE_SENDER = "resources+agent@example.com" @@ -73,7 +72,7 @@ all_parts += handle_itip_part(part, original_recipients, self.handlers) - # Pack the parts into a single message. + # Pack any returned parts into a single message. if all_parts: message = self.make_message(all_parts, senders) @@ -83,6 +82,8 @@ else: sendmail(self.sender, senders, message.as_string()) + # Forward messages to their recipients. + def make_message(self, parts, recipients): "Make a message from the given 'parts' for the given 'recipients'."