1.1 --- a/imiptools/handlers/person.py Tue Oct 28 22:39:40 2014 +0100
1.2 +++ b/imiptools/handlers/person.py Tue Oct 28 22:59:00 2014 +0100
1.3 @@ -44,6 +44,14 @@
1.4
1.5 return True
1.6
1.7 + def reply(self):
1.8 +
1.9 + "Wrap any valid message and pass it on to the recipient."
1.10 +
1.11 + attendee = self.get_value("ATTENDEE")
1.12 + if attendee:
1.13 + return "REPLY", MIMEText("A reply has been received from %s." % attendee)
1.14 +
1.15 class Event(PersonHandler):
1.16
1.17 "An event handler."
1.18 @@ -101,10 +109,7 @@
1.19 "Record replies and notify the recipient."
1.20
1.21 self._record_and_deliver("VEVENT", False)
1.22 -
1.23 - # The message is now wrapped and passed on to the recipient.
1.24 -
1.25 - return "REPLY", MIMEText("A reply has been received.")
1.26 + return PersonHandler.reply(self)
1.27
1.28 def request(self):
1.29
1.30 @@ -134,10 +139,7 @@
1.31 "Record replies and notify the recipient."
1.32
1.33 self._record_and_deliver("VFREEBUSY", False)
1.34 -
1.35 - # The message is now wrapped and passed on to the recipient.
1.36 -
1.37 - return "REPLY", MIMEText("A reply has been received.")
1.38 + return PersonHandler.reply(self)
1.39
1.40 def request(self):
1.41
1.42 @@ -267,10 +269,7 @@
1.43 "Record replies and notify the recipient."
1.44
1.45 self._record_and_deliver("VTODO", False)
1.46 -
1.47 - # The message is now wrapped and passed on to the recipient.
1.48 -
1.49 - return "REPLY", MIMEText("A reply has been received.")
1.50 + return PersonHandler.reply(self)
1.51
1.52 def request(self):
1.53