mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	Allows filtering email by the TO value(s) as well
This commit is contained in:
		| @@ -9,6 +9,7 @@ | ||||
|             "account": 2, | ||||
|             "folder": "INBOX", | ||||
|             "filter_from": null, | ||||
|             "filter_to": null, | ||||
|             "filter_subject": "[paperless]", | ||||
|             "filter_body": null, | ||||
|             "filter_attachment_filename": null, | ||||
|   | ||||
| @@ -18,6 +18,7 @@ | ||||
|       <div class="col"> | ||||
|         <p class="small" i18n>Paperless will only process mails that match <em>all</em> of the filters specified below.</p> | ||||
|         <app-input-text i18n-title title="Filter from" formControlName="filter_from" [error]="error?.filter_from"></app-input-text> | ||||
|         <app-input-text i18n-title title="Filter to" formControlName="filter_to" [error]="error?.filter_to"></app-input-text> | ||||
|         <app-input-text i18n-title title="Filter subject" formControlName="filter_subject" [error]="error?.filter_subject"></app-input-text> | ||||
|         <app-input-text i18n-title title="Filter body" formControlName="filter_body" [error]="error?.filter_body"></app-input-text> | ||||
|         <app-input-text i18n-title title="Filter attachment filename" formControlName="filter_attachment_filename" i18n-hint hint="Only consume documents which entirely match this filename if specified. Wildcards such as *.pdf or *invoice* are allowed. Case insensitive." [error]="error?.filter_attachment_filename"></app-input-text> | ||||
|   | ||||
| @@ -149,6 +149,7 @@ export class MailRuleEditDialogComponent extends EditDialogComponent<PaperlessMa | ||||
|       account: new FormControl(null), | ||||
|       folder: new FormControl('INBOX'), | ||||
|       filter_from: new FormControl(null), | ||||
|       filter_to: new FormControl(null), | ||||
|       filter_subject: new FormControl(null), | ||||
|       filter_body: new FormControl(null), | ||||
|       filter_attachment_filename: new FormControl(null), | ||||
|   | ||||
| @@ -386,6 +386,7 @@ export class SettingsComponent | ||||
|           account: rule.account, | ||||
|           folder: rule.folder, | ||||
|           filter_from: rule.filter_from, | ||||
|           filter_to: rule.filter_to, | ||||
|           filter_subject: rule.filter_subject, | ||||
|           filter_body: rule.filter_body, | ||||
|           filter_attachment_filename: rule.filter_attachment_filename, | ||||
| @@ -406,6 +407,7 @@ export class SettingsComponent | ||||
|             account: new FormControl(null), | ||||
|             folder: new FormControl(null), | ||||
|             filter_from: new FormControl(null), | ||||
|             filter_to: new FormControl(null), | ||||
|             filter_subject: new FormControl(null), | ||||
|             filter_body: new FormControl(null), | ||||
|             filter_attachment_filename: new FormControl(null), | ||||
|   | ||||
| @@ -42,6 +42,8 @@ export interface PaperlessMailRule extends ObjectWithId { | ||||
|  | ||||
|   filter_from: string | ||||
|  | ||||
|   filter_to: string | ||||
|  | ||||
|   filter_subject: string | ||||
|  | ||||
|   filter_body: string | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Trenton H
					Trenton H