]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Fixes inversion in tagged mail searching
authorTrenton H <797416+stumpylog@users.noreply.github.com>
Wed, 3 May 2023 21:17:52 +0000 (14:17 -0700)
committerTrenton H <797416+stumpylog@users.noreply.github.com>
Thu, 4 May 2023 13:29:41 +0000 (06:29 -0700)
src/paperless_mail/mail.py

index 3851cf59012c8174011a3d59a86de506a48f1b72..45cf57aa1ea38a360daade4c15df608859221e0a 100644 (file)
@@ -168,7 +168,7 @@ class TagMailAction(BaseMailAction):
             if self.supports_gmail_labels:
                 return AND(NOT(gmail_label=self.keyword), no_keyword=self.keyword)
             else:
-                return NOT(no_keyword=self.keyword)
+                return {"no_keyword": self.keyword}
         else:  # pragma: nocover
             raise ValueError("This should never happen.")