mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-07-28 18:24:38 -05: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:
@@ -23,7 +23,8 @@ const mail_rules = [
|
||||
filter_to: null,
|
||||
filter_subject: null,
|
||||
filter_body: null,
|
||||
filter_attachment_filename: null,
|
||||
filter_attachment_filename_include: null,
|
||||
filter_attachment_filename_exclude: null,
|
||||
maximum_age: 30,
|
||||
attachment_type: MailFilterAttachmentType.Everything,
|
||||
action: MailAction.MarkRead,
|
||||
@@ -40,7 +41,8 @@ const mail_rules = [
|
||||
filter_to: null,
|
||||
filter_subject: null,
|
||||
filter_body: null,
|
||||
filter_attachment_filename: null,
|
||||
filter_attachment_filename_include: null,
|
||||
filter_attachment_filename_exclude: null,
|
||||
maximum_age: 30,
|
||||
attachment_type: MailFilterAttachmentType.Everything,
|
||||
action: MailAction.Delete,
|
||||
@@ -57,7 +59,8 @@ const mail_rules = [
|
||||
filter_to: null,
|
||||
filter_subject: null,
|
||||
filter_body: null,
|
||||
filter_attachment_filename: null,
|
||||
filter_attachment_filename_include: null,
|
||||
filter_attachment_filename_exclude: null,
|
||||
maximum_age: 30,
|
||||
attachment_type: MailFilterAttachmentType.Everything,
|
||||
action: MailAction.Flag,
|
||||
|
Reference in New Issue
Block a user