1.1 --- a/imip_manager.py Sun Feb 08 18:39:03 2015 +0100
1.2 +++ b/imip_manager.py Sun Feb 08 20:06:37 2015 +0100
1.3 @@ -158,7 +158,12 @@
1.4 uid = "imip-agent-%s-%s" % (utcnow, get_address(self.user))
1.5
1.6 freebusy = self.store.get_freebusy(self.user)
1.7 - parts.append(to_part("PUBLISH", [make_freebusy(freebusy, uid, self.user)]))
1.8 + user_attr = self.messenger and self.messenger.sender != get_address(self.user) and \
1.9 + {"SENT-BY" : get_uri(self.messenger.sender)} or {}
1.10 +
1.11 + parts.append(to_part("PUBLISH", [
1.12 + make_freebusy(freebusy, uid, self.user, user_attr)
1.13 + ]))
1.14
1.15 message = self.messenger.make_outgoing_message(parts, recipients, outgoing_bcc=sender)
1.16 self.messenger.sendmail(recipients, message.as_string(), outgoing_bcc=sender)