Fix IMAP4 store flags argument, GitLab issue #606
Python's documentation is incorrect, argument name is flag_list. Closes GitLab issue #606. Thanks to Samuel Aebi (@samuelaebi) for the report and debug information. Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
This commit is contained in:
@@ -247,10 +247,11 @@ class IMAPEmail(EmailBaseModel):
|
||||
EmailBaseModel.process_message(
|
||||
source=self, message_text=data[0][1]
|
||||
)
|
||||
|
||||
if not test:
|
||||
mailbox.store(
|
||||
message_set=message_number, command='+FLAGS',
|
||||
flag_list='\\Deleted'
|
||||
flags=r'\Deleted'
|
||||
)
|
||||
|
||||
mailbox.expunge()
|
||||
|
||||
Reference in New Issue
Block a user