mirror of
https://github.com/domainaware/parsedmarc.git
synced 2026-07-09 10:15:08 +00:00
8.1.1
- Fix marking messages as read via Microsoft Graph
This commit is contained in:
@@ -1,6 +1,11 @@
|
||||
Changelog
|
||||
=========
|
||||
|
||||
8.1.1
|
||||
-----
|
||||
|
||||
- Fix marking messages as read via Microsoft Graph
|
||||
|
||||
8.1.0
|
||||
-----
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ from parsedmarc.utils import is_outlook_msg, convert_outlook_msg
|
||||
from parsedmarc.utils import parse_email
|
||||
from parsedmarc.utils import timestamp_to_human, human_timestamp_to_datetime
|
||||
|
||||
__version__ = "8.1.0"
|
||||
__version__ = "8.1.1"
|
||||
|
||||
formatter = logging.Formatter(
|
||||
fmt='%(levelname)8s:%(filename)s:%(lineno)d:%(message)s',
|
||||
|
||||
@@ -66,7 +66,7 @@ class MSGraphConnection(MailboxConnection):
|
||||
def mark_message_read(self, message_id: str):
|
||||
"""Marks a message as read"""
|
||||
url = f'/users/{self.mailbox_name}/messages/{message_id}'
|
||||
resp = self._client.patch(url, data={"isRead": "true"})
|
||||
resp = self._client.patch(url, json={"isRead": "true"})
|
||||
if resp.status_code != 200:
|
||||
raise RuntimeWarning(f"Failed to mark message read"
|
||||
f"{resp.status_code}: {resp.json()}")
|
||||
|
||||
Reference in New Issue
Block a user