mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-07 23:35:22 +01:00
Switched to flag()
Newer versions of imap_tools moved away from `seen()` in favour of `flag()` and deprecated the former. This fixes https://github.com/jonaswinkler/paperless-ng/issues/1672 I also remove the mocked `seen()` function and updated the `flag()` mock
This commit is contained in:
parent
74b94bc66a
commit
0925c90047
2 changed files with 3 additions and 6 deletions
|
|
@ -44,7 +44,7 @@ class MarkReadMailAction(BaseMailAction):
|
|||
return {"seen": False}
|
||||
|
||||
def post_consume(self, M, message_uids, parameter):
|
||||
M.seen(message_uids, True)
|
||||
M.flag(message_uids, [MailMessageFlags.SEEN], True)
|
||||
|
||||
|
||||
class MoveMailAction(BaseMailAction):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue