- Fix marking messages as read via Microsoft Graph
This commit is contained in:
Sean Whalen
2022-05-09 19:14:27 -04:00
parent 6b2131f0e8
commit 665720a017
4 changed files with 8 additions and 3 deletions
+5
View File
@@ -1,6 +1,11 @@
Changelog
=========
8.1.1
-----
- Fix marking messages as read via Microsoft Graph
8.1.0
-----
+1 -1
View File
@@ -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',
+1 -1
View File
@@ -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()}")
+1 -1
View File
@@ -14,7 +14,7 @@ from setuptools import setup
from codecs import open
from os import path
__version__ = "8.1.0"
__version__ = "8.1.1"
description = "A Python package and CLI for parsing aggregate and " \
"forensic DMARC reports"