1.1 --- a/imiptools/handlers/common.py Sun Feb 08 18:39:03 2015 +0100
1.2 +++ b/imiptools/handlers/common.py Sun Feb 08 20:06:37 2015 +0100
1.3 @@ -19,7 +19,7 @@
1.4 this program. If not, see <http://www.gnu.org/licenses/>.
1.5 """
1.6
1.7 -from imiptools.data import get_address, make_freebusy, to_part
1.8 +from imiptools.data import get_address, get_uri, make_freebusy, to_part
1.9
1.10 class CommonFreebusy:
1.11
1.12 @@ -47,7 +47,13 @@
1.13
1.14 for attendee, attendee_attr in attendees.items():
1.15 freebusy = self.store.get_freebusy(attendee)
1.16 - rwrite(make_freebusy(freebusy, self.uid, organiser, attendee))
1.17 +
1.18 + # Indicate the actual sender of the reply.
1.19 +
1.20 + if self.messenger:
1.21 + attendee_attr["SENT-BY"] = get_uri(self.messenger.sender)
1.22 +
1.23 + rwrite(make_freebusy(freebusy, self.uid, organiser, organiser_attr, attendee, attendee_attr))
1.24
1.25 # Return the reply.
1.26