mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-12-06 03:01:56 +00:00
Fix: queue one consumption chord per mail so it produces a single ProcessedMail row (#14915)
With the "everything" consumption scope the eml and the attachments were each queued as their own chord, so each ran its own mail action and wrote its own ProcessedMail row. A mail without attachments also got an early PROCESSED_WO_CONSUMPTION row alongside the eml's SUCCESS row. Build the eml and attachment tasks separately, then queue them together once per message.
This commit is contained in:
1 parent
1dc797e9be
commit
3e6e1e6efd
3 files changed
+75
-48
No files matched your search
@@ -272,8 +272,6 @@ class TestMailMessageGpgDecryptor(TestMail):
|
||||
"override_title": message.subject,
|
||||
"override_filename": f"{message.subject}.eml",
|
||||
},
|
||||
],
|
||||
[
|
||||
{"override_title": "file_0", "override_filename": "file_0.pdf"},
|
||||
{"override_title": "file_1", "override_filename": "file_1.pdf"},
|
||||
],
|
||||
|
||||
Reference in new issue
Block a user