From 4d0e8a338fc5d4f034fd1589045209cbdd9f977c Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Fri, 16 Feb 2024 22:36:33 -0800 Subject: [PATCH] Fix: Pass rule id to consumed .eml files (#5800) --- src/paperless_mail/mail.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/paperless_mail/mail.py b/src/paperless_mail/mail.py index a4ff6478c..a41b52a6e 100644 --- a/src/paperless_mail/mail.py +++ b/src/paperless_mail/mail.py @@ -831,6 +831,7 @@ class MailAccountHandler(LoggingMixin): input_doc = ConsumableDocument( source=DocumentSource.MailFetch, original_file=temp_filename, + mailrule_id=rule.pk, ) doc_overrides = DocumentMetadataOverrides( title=message.subject,