We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9f42c3 commit ae9b362Copy full SHA for ae9b362
O365/message.py
@@ -639,6 +639,14 @@ def message_headers(self, value):
639
self.__message_headers = value
640
self._track_changes.add('message_headers')
641
642
+ def add_message_header(self, name, value):
643
+ # Look if we already have the key. If we do, update it, otherwise write
644
+ for header in self.__message_headers:
645
+ if header["name"] == name:
646
+ header["value"] = value
647
+ return
648
+ self.__message_headers.append({"name": name, "value": value})
649
+
650
def to_api_data(self, restrict_keys=None):
651
""" Returns a dict representation of this message prepared to be sent
652
to the cloud
0 commit comments