1.1 --- a/imiptools/__init__.py Wed Oct 22 15:45:00 2014 +0200
1.2 +++ b/imiptools/__init__.py Wed Oct 22 15:46:50 2014 +0200
1.3 @@ -5,7 +5,6 @@
1.4 from email.mime.text import MIMEText
1.5 from smtplib import SMTP
1.6 from imiptools.content import handle_itip_part
1.7 -import imip_resource
1.8 import sys
1.9
1.10 MESSAGE_SENDER = "resources+agent@example.com"
1.11 @@ -73,7 +72,7 @@
1.12
1.13 all_parts += handle_itip_part(part, original_recipients, self.handlers)
1.14
1.15 - # Pack the parts into a single message.
1.16 + # Pack any returned parts into a single message.
1.17
1.18 if all_parts:
1.19 message = self.make_message(all_parts, senders)
1.20 @@ -83,6 +82,8 @@
1.21 else:
1.22 sendmail(self.sender, senders, message.as_string())
1.23
1.24 + # Forward messages to their recipients.
1.25 +
1.26 def make_message(self, parts, recipients):
1.27
1.28 "Make a message from the given 'parts' for the given 'recipients'."