mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-08-10 00:18:57 +00:00
Enhancement: Allow excluding mail attachments by name (#4691)
* Adds new filtering to exclude attachments from processing * Frontend use include / exclude mail rule filename filters --------- Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
# Generated by Django 4.2.7 on 2023-11-28 17:47
|
||||
|
||||
from django.db import migrations
|
||||
from django.db import models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
dependencies = [
|
||||
("paperless_mail", "0022_mailrule_assign_owner_from_rule_and_more"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RenameField(
|
||||
model_name="mailrule",
|
||||
old_name="filter_attachment_filename",
|
||||
new_name="filter_attachment_filename_include",
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name="mailrule",
|
||||
name="filter_attachment_filename_exclude",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
help_text="Do not consume documents which entirely match this filename if specified. Wildcards such as *.pdf or *invoice* are allowed. Case insensitive.",
|
||||
max_length=256,
|
||||
null=True,
|
||||
verbose_name="filter attachment filename exclusive",
|
||||
),
|
||||
),
|
||||
]
|
Reference in New Issue
Block a user