mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-07-30 18:27:45 -05:00
Enhancement: allow multiple filename attachment exclusion patterns for a mail rule (#5524)
--------- Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
This commit is contained in:
@@ -592,6 +592,18 @@ class TestMail(
|
||||
exclude_pattern="f1*",
|
||||
expected_matches=["f2.pdf", "f3.pdf", "file.PDf"],
|
||||
),
|
||||
FilterTestCase(
|
||||
"PDF Files without f1 and f2",
|
||||
include_pattern="*.pdf",
|
||||
exclude_pattern="f1*,f2*",
|
||||
expected_matches=["f3.pdf", "file.PDf"],
|
||||
),
|
||||
FilterTestCase(
|
||||
"PDF Files without f1 and f2 and f3",
|
||||
include_pattern="*.pdf",
|
||||
exclude_pattern="f1*,f2*,f3*",
|
||||
expected_matches=["file.PDf"],
|
||||
),
|
||||
FilterTestCase(
|
||||
"All Files, no PNG",
|
||||
include_pattern="*",
|
||||
|
Reference in New Issue
Block a user