]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Fix: always check workflow filter_mailrule if set (#6474)
authorshamoon <4887959+shamoon@users.noreply.github.com>
Tue, 23 Apr 2024 14:37:14 +0000 (07:37 -0700)
committerGitHub <noreply@github.com>
Tue, 23 Apr 2024 14:37:14 +0000 (07:37 -0700)
src/documents/matching.py

index 6ffa1b3aac81a077be4177beb731713ef7889c9d..586ca3a6a6e7f803429be8f8582ad705ed162342 100644 (file)
@@ -269,8 +269,7 @@ def consumable_document_matches_workflow(
 
     # Document mail rule vs trigger mail rule
     if (
-        document.mailrule_id is not None
-        and trigger.filter_mailrule is not None
+        trigger.filter_mailrule is not None
         and document.mailrule_id != trigger.filter_mailrule.pk
     ):
         reason = (