mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-03 19:17:13 -05:00 
			
		
		
		
	Fix missing frontend email attachment options
This commit is contained in:
		
							parent
							
								
									f4e5023d22
								
							
						
					
					
						commit
						eaa7ae2fb5
					
				@ -1194,6 +1194,13 @@
 | 
				
			|||||||
          <context context-type="linenumber">14</context>
 | 
					          <context context-type="linenumber">14</context>
 | 
				
			||||||
        </context-group>
 | 
					        </context-group>
 | 
				
			||||||
      </trans-unit>
 | 
					      </trans-unit>
 | 
				
			||||||
 | 
					      <trans-unit id="56643687972548912" datatype="html">
 | 
				
			||||||
 | 
					        <source>See docs for .eml processing requirements</source>
 | 
				
			||||||
 | 
					        <context-group purpose="location">
 | 
				
			||||||
 | 
					          <context context-type="sourcefile">src/app/components/common/edit-dialog/mail-rule-edit-dialog/mail-rule-edit-dialog.component.html</context>
 | 
				
			||||||
 | 
					          <context context-type="linenumber">14</context>
 | 
				
			||||||
 | 
					        </context-group>
 | 
				
			||||||
 | 
					      </trans-unit>
 | 
				
			||||||
      <trans-unit id="5488632521862493221" datatype="html">
 | 
					      <trans-unit id="5488632521862493221" datatype="html">
 | 
				
			||||||
        <source>Paperless will only process mails that match <x id="START_EMPHASISED_TEXT" ctype="x-em" equiv-text="<em>"/>all<x id="CLOSE_EMPHASISED_TEXT" ctype="x-em" equiv-text="</em>"/> of the filters specified below.</source>
 | 
					        <source>Paperless will only process mails that match <x id="START_EMPHASISED_TEXT" ctype="x-em" equiv-text="<em>"/>all<x id="CLOSE_EMPHASISED_TEXT" ctype="x-em" equiv-text="</em>"/> of the filters specified below.</source>
 | 
				
			||||||
        <context-group purpose="location">
 | 
					        <context-group purpose="location">
 | 
				
			||||||
@ -1303,18 +1310,25 @@
 | 
				
			|||||||
          <context context-type="linenumber">24</context>
 | 
					          <context context-type="linenumber">24</context>
 | 
				
			||||||
        </context-group>
 | 
					        </context-group>
 | 
				
			||||||
      </trans-unit>
 | 
					      </trans-unit>
 | 
				
			||||||
      <trans-unit id="3860563069570088911" datatype="html">
 | 
					      <trans-unit id="3622418743488695840" datatype="html">
 | 
				
			||||||
        <source>Process all files, including 'inline' attachments.</source>
 | 
					        <source>Process with embedded attachments as .eml</source>
 | 
				
			||||||
        <context-group purpose="location">
 | 
					        <context-group purpose="location">
 | 
				
			||||||
          <context context-type="sourcefile">src/app/components/common/edit-dialog/mail-rule-edit-dialog/mail-rule-edit-dialog.component.ts</context>
 | 
					          <context context-type="sourcefile">src/app/components/common/edit-dialog/mail-rule-edit-dialog/mail-rule-edit-dialog.component.ts</context>
 | 
				
			||||||
          <context context-type="linenumber">28</context>
 | 
					          <context context-type="linenumber">28</context>
 | 
				
			||||||
        </context-group>
 | 
					        </context-group>
 | 
				
			||||||
      </trans-unit>
 | 
					      </trans-unit>
 | 
				
			||||||
 | 
					      <trans-unit id="7205371824972320534" datatype="html">
 | 
				
			||||||
 | 
					        <source>Process as .eml and attachments as separate documents</source>
 | 
				
			||||||
 | 
					        <context-group purpose="location">
 | 
				
			||||||
 | 
					          <context context-type="sourcefile">src/app/components/common/edit-dialog/mail-rule-edit-dialog/mail-rule-edit-dialog.component.ts</context>
 | 
				
			||||||
 | 
					          <context context-type="linenumber">32</context>
 | 
				
			||||||
 | 
					        </context-group>
 | 
				
			||||||
 | 
					      </trans-unit>
 | 
				
			||||||
      <trans-unit id="7022070615528435141" datatype="html">
 | 
					      <trans-unit id="7022070615528435141" datatype="html">
 | 
				
			||||||
        <source>Delete</source>
 | 
					        <source>Delete</source>
 | 
				
			||||||
        <context-group purpose="location">
 | 
					        <context-group purpose="location">
 | 
				
			||||||
          <context context-type="sourcefile">src/app/components/common/edit-dialog/mail-rule-edit-dialog/mail-rule-edit-dialog.component.ts</context>
 | 
					          <context context-type="sourcefile">src/app/components/common/edit-dialog/mail-rule-edit-dialog/mail-rule-edit-dialog.component.ts</context>
 | 
				
			||||||
          <context context-type="linenumber">35</context>
 | 
					          <context context-type="linenumber">39</context>
 | 
				
			||||||
        </context-group>
 | 
					        </context-group>
 | 
				
			||||||
        <context-group purpose="location">
 | 
					        <context-group purpose="location">
 | 
				
			||||||
          <context context-type="sourcefile">src/app/components/document-detail/document-detail.component.html</context>
 | 
					          <context context-type="sourcefile">src/app/components/document-detail/document-detail.component.html</context>
 | 
				
			||||||
@ -1377,84 +1391,84 @@
 | 
				
			|||||||
        <source>Move to specified folder</source>
 | 
					        <source>Move to specified folder</source>
 | 
				
			||||||
        <context-group purpose="location">
 | 
					        <context-group purpose="location">
 | 
				
			||||||
          <context context-type="sourcefile">src/app/components/common/edit-dialog/mail-rule-edit-dialog/mail-rule-edit-dialog.component.ts</context>
 | 
					          <context context-type="sourcefile">src/app/components/common/edit-dialog/mail-rule-edit-dialog/mail-rule-edit-dialog.component.ts</context>
 | 
				
			||||||
          <context context-type="linenumber">39</context>
 | 
					          <context context-type="linenumber">43</context>
 | 
				
			||||||
        </context-group>
 | 
					        </context-group>
 | 
				
			||||||
      </trans-unit>
 | 
					      </trans-unit>
 | 
				
			||||||
      <trans-unit id="4593278936733161020" datatype="html">
 | 
					      <trans-unit id="4593278936733161020" datatype="html">
 | 
				
			||||||
        <source>Mark as read, don't process read mails</source>
 | 
					        <source>Mark as read, don't process read mails</source>
 | 
				
			||||||
        <context-group purpose="location">
 | 
					        <context-group purpose="location">
 | 
				
			||||||
          <context context-type="sourcefile">src/app/components/common/edit-dialog/mail-rule-edit-dialog/mail-rule-edit-dialog.component.ts</context>
 | 
					          <context context-type="sourcefile">src/app/components/common/edit-dialog/mail-rule-edit-dialog/mail-rule-edit-dialog.component.ts</context>
 | 
				
			||||||
          <context context-type="linenumber">43</context>
 | 
					          <context context-type="linenumber">47</context>
 | 
				
			||||||
        </context-group>
 | 
					        </context-group>
 | 
				
			||||||
      </trans-unit>
 | 
					      </trans-unit>
 | 
				
			||||||
      <trans-unit id="2378921144019636516" datatype="html">
 | 
					      <trans-unit id="2378921144019636516" datatype="html">
 | 
				
			||||||
        <source>Flag the mail, don't process flagged mails</source>
 | 
					        <source>Flag the mail, don't process flagged mails</source>
 | 
				
			||||||
        <context-group purpose="location">
 | 
					        <context-group purpose="location">
 | 
				
			||||||
          <context context-type="sourcefile">src/app/components/common/edit-dialog/mail-rule-edit-dialog/mail-rule-edit-dialog.component.ts</context>
 | 
					          <context context-type="sourcefile">src/app/components/common/edit-dialog/mail-rule-edit-dialog/mail-rule-edit-dialog.component.ts</context>
 | 
				
			||||||
          <context context-type="linenumber">47</context>
 | 
					          <context context-type="linenumber">51</context>
 | 
				
			||||||
        </context-group>
 | 
					        </context-group>
 | 
				
			||||||
      </trans-unit>
 | 
					      </trans-unit>
 | 
				
			||||||
      <trans-unit id="6457024618858980302" datatype="html">
 | 
					      <trans-unit id="6457024618858980302" datatype="html">
 | 
				
			||||||
        <source>Tag the mail with specified tag, don't process tagged mails</source>
 | 
					        <source>Tag the mail with specified tag, don't process tagged mails</source>
 | 
				
			||||||
        <context-group purpose="location">
 | 
					        <context-group purpose="location">
 | 
				
			||||||
          <context context-type="sourcefile">src/app/components/common/edit-dialog/mail-rule-edit-dialog/mail-rule-edit-dialog.component.ts</context>
 | 
					          <context context-type="sourcefile">src/app/components/common/edit-dialog/mail-rule-edit-dialog/mail-rule-edit-dialog.component.ts</context>
 | 
				
			||||||
          <context context-type="linenumber">51</context>
 | 
					          <context context-type="linenumber">55</context>
 | 
				
			||||||
        </context-group>
 | 
					        </context-group>
 | 
				
			||||||
      </trans-unit>
 | 
					      </trans-unit>
 | 
				
			||||||
      <trans-unit id="4673329664686432878" datatype="html">
 | 
					      <trans-unit id="4673329664686432878" datatype="html">
 | 
				
			||||||
        <source>Use subject as title</source>
 | 
					        <source>Use subject as title</source>
 | 
				
			||||||
        <context-group purpose="location">
 | 
					        <context-group purpose="location">
 | 
				
			||||||
          <context context-type="sourcefile">src/app/components/common/edit-dialog/mail-rule-edit-dialog/mail-rule-edit-dialog.component.ts</context>
 | 
					          <context context-type="sourcefile">src/app/components/common/edit-dialog/mail-rule-edit-dialog/mail-rule-edit-dialog.component.ts</context>
 | 
				
			||||||
          <context context-type="linenumber">58</context>
 | 
					          <context context-type="linenumber">62</context>
 | 
				
			||||||
        </context-group>
 | 
					        </context-group>
 | 
				
			||||||
      </trans-unit>
 | 
					      </trans-unit>
 | 
				
			||||||
      <trans-unit id="8645471396972938185" datatype="html">
 | 
					      <trans-unit id="8645471396972938185" datatype="html">
 | 
				
			||||||
        <source>Use attachment filename as title</source>
 | 
					        <source>Use attachment filename as title</source>
 | 
				
			||||||
        <context-group purpose="location">
 | 
					        <context-group purpose="location">
 | 
				
			||||||
          <context context-type="sourcefile">src/app/components/common/edit-dialog/mail-rule-edit-dialog/mail-rule-edit-dialog.component.ts</context>
 | 
					          <context context-type="sourcefile">src/app/components/common/edit-dialog/mail-rule-edit-dialog/mail-rule-edit-dialog.component.ts</context>
 | 
				
			||||||
          <context context-type="linenumber">62</context>
 | 
					          <context context-type="linenumber">66</context>
 | 
				
			||||||
        </context-group>
 | 
					        </context-group>
 | 
				
			||||||
      </trans-unit>
 | 
					      </trans-unit>
 | 
				
			||||||
      <trans-unit id="1568902914205618549" datatype="html">
 | 
					      <trans-unit id="1568902914205618549" datatype="html">
 | 
				
			||||||
        <source>Do not assign a correspondent</source>
 | 
					        <source>Do not assign a correspondent</source>
 | 
				
			||||||
        <context-group purpose="location">
 | 
					        <context-group purpose="location">
 | 
				
			||||||
          <context context-type="sourcefile">src/app/components/common/edit-dialog/mail-rule-edit-dialog/mail-rule-edit-dialog.component.ts</context>
 | 
					          <context context-type="sourcefile">src/app/components/common/edit-dialog/mail-rule-edit-dialog/mail-rule-edit-dialog.component.ts</context>
 | 
				
			||||||
          <context context-type="linenumber">69</context>
 | 
					          <context context-type="linenumber">73</context>
 | 
				
			||||||
        </context-group>
 | 
					        </context-group>
 | 
				
			||||||
      </trans-unit>
 | 
					      </trans-unit>
 | 
				
			||||||
      <trans-unit id="3567746385454588269" datatype="html">
 | 
					      <trans-unit id="3567746385454588269" datatype="html">
 | 
				
			||||||
        <source>Use mail address</source>
 | 
					        <source>Use mail address</source>
 | 
				
			||||||
        <context-group purpose="location">
 | 
					        <context-group purpose="location">
 | 
				
			||||||
          <context context-type="sourcefile">src/app/components/common/edit-dialog/mail-rule-edit-dialog/mail-rule-edit-dialog.component.ts</context>
 | 
					          <context context-type="sourcefile">src/app/components/common/edit-dialog/mail-rule-edit-dialog/mail-rule-edit-dialog.component.ts</context>
 | 
				
			||||||
          <context context-type="linenumber">73</context>
 | 
					          <context context-type="linenumber">77</context>
 | 
				
			||||||
        </context-group>
 | 
					        </context-group>
 | 
				
			||||||
      </trans-unit>
 | 
					      </trans-unit>
 | 
				
			||||||
      <trans-unit id="445154175758965852" datatype="html">
 | 
					      <trans-unit id="445154175758965852" datatype="html">
 | 
				
			||||||
        <source>Use name (or mail address if not available)</source>
 | 
					        <source>Use name (or mail address if not available)</source>
 | 
				
			||||||
        <context-group purpose="location">
 | 
					        <context-group purpose="location">
 | 
				
			||||||
          <context context-type="sourcefile">src/app/components/common/edit-dialog/mail-rule-edit-dialog/mail-rule-edit-dialog.component.ts</context>
 | 
					          <context context-type="sourcefile">src/app/components/common/edit-dialog/mail-rule-edit-dialog/mail-rule-edit-dialog.component.ts</context>
 | 
				
			||||||
          <context context-type="linenumber">77</context>
 | 
					          <context context-type="linenumber">81</context>
 | 
				
			||||||
        </context-group>
 | 
					        </context-group>
 | 
				
			||||||
      </trans-unit>
 | 
					      </trans-unit>
 | 
				
			||||||
      <trans-unit id="1258862217749148424" datatype="html">
 | 
					      <trans-unit id="1258862217749148424" datatype="html">
 | 
				
			||||||
        <source>Use correspondent selected below</source>
 | 
					        <source>Use correspondent selected below</source>
 | 
				
			||||||
        <context-group purpose="location">
 | 
					        <context-group purpose="location">
 | 
				
			||||||
          <context context-type="sourcefile">src/app/components/common/edit-dialog/mail-rule-edit-dialog/mail-rule-edit-dialog.component.ts</context>
 | 
					          <context context-type="sourcefile">src/app/components/common/edit-dialog/mail-rule-edit-dialog/mail-rule-edit-dialog.component.ts</context>
 | 
				
			||||||
          <context context-type="linenumber">81</context>
 | 
					          <context context-type="linenumber">85</context>
 | 
				
			||||||
        </context-group>
 | 
					        </context-group>
 | 
				
			||||||
      </trans-unit>
 | 
					      </trans-unit>
 | 
				
			||||||
      <trans-unit id="3147349817770432927" datatype="html">
 | 
					      <trans-unit id="3147349817770432927" datatype="html">
 | 
				
			||||||
        <source>Create new mail rule</source>
 | 
					        <source>Create new mail rule</source>
 | 
				
			||||||
        <context-group purpose="location">
 | 
					        <context-group purpose="location">
 | 
				
			||||||
          <context context-type="sourcefile">src/app/components/common/edit-dialog/mail-rule-edit-dialog/mail-rule-edit-dialog.component.ts</context>
 | 
					          <context context-type="sourcefile">src/app/components/common/edit-dialog/mail-rule-edit-dialog/mail-rule-edit-dialog.component.ts</context>
 | 
				
			||||||
          <context context-type="linenumber">121</context>
 | 
					          <context context-type="linenumber">125</context>
 | 
				
			||||||
        </context-group>
 | 
					        </context-group>
 | 
				
			||||||
      </trans-unit>
 | 
					      </trans-unit>
 | 
				
			||||||
      <trans-unit id="3374331029704382439" datatype="html">
 | 
					      <trans-unit id="3374331029704382439" datatype="html">
 | 
				
			||||||
        <source>Edit mail rule</source>
 | 
					        <source>Edit mail rule</source>
 | 
				
			||||||
        <context-group purpose="location">
 | 
					        <context-group purpose="location">
 | 
				
			||||||
          <context context-type="sourcefile">src/app/components/common/edit-dialog/mail-rule-edit-dialog/mail-rule-edit-dialog.component.ts</context>
 | 
					          <context context-type="sourcefile">src/app/components/common/edit-dialog/mail-rule-edit-dialog/mail-rule-edit-dialog.component.ts</context>
 | 
				
			||||||
          <context context-type="linenumber">125</context>
 | 
					          <context context-type="linenumber">129</context>
 | 
				
			||||||
        </context-group>
 | 
					        </context-group>
 | 
				
			||||||
      </trans-unit>
 | 
					      </trans-unit>
 | 
				
			||||||
      <trans-unit id="6036319582202941456" datatype="html">
 | 
					      <trans-unit id="6036319582202941456" datatype="html">
 | 
				
			||||||
 | 
				
			|||||||
@ -11,7 +11,7 @@
 | 
				
			|||||||
        <app-input-select i18n-title title="Account" [items]="accounts" formControlName="account"></app-input-select>
 | 
					        <app-input-select i18n-title title="Account" [items]="accounts" formControlName="account"></app-input-select>
 | 
				
			||||||
        <app-input-text i18n-title title="Folder" formControlName="folder" i18n-hint hint="Subfolders must be separated by a delimiter, often a dot ('.') or slash ('/'), but it varies by mail server." [error]="error?.folder"></app-input-text>
 | 
					        <app-input-text i18n-title title="Folder" formControlName="folder" i18n-hint hint="Subfolders must be separated by a delimiter, often a dot ('.') or slash ('/'), but it varies by mail server." [error]="error?.folder"></app-input-text>
 | 
				
			||||||
        <app-input-number i18n-title title="Maximum age (days)" formControlName="maximum_age" [showAdd]="false" [error]="error?.maximum_age"></app-input-number>
 | 
					        <app-input-number i18n-title title="Maximum age (days)" formControlName="maximum_age" [showAdd]="false" [error]="error?.maximum_age"></app-input-number>
 | 
				
			||||||
        <app-input-select i18n-title title="Attachment type" [items]="attachmentTypeOptions" formControlName="attachment_type"></app-input-select>
 | 
					        <app-input-select i18n-title title="Attachment type" [items]="attachmentTypeOptions" formControlName="attachment_type" i18n-hint hint="See docs for .eml processing requirements"></app-input-select>
 | 
				
			||||||
      </div>
 | 
					      </div>
 | 
				
			||||||
      <div class="col">
 | 
					      <div class="col">
 | 
				
			||||||
        <p class="small" i18n>Paperless will only process mails that match <em>all</em> of the filters specified below.</p>
 | 
					        <p class="small" i18n>Paperless will only process mails that match <em>all</em> of the filters specified below.</p>
 | 
				
			||||||
 | 
				
			|||||||
@ -23,9 +23,13 @@ const ATTACHMENT_TYPE_OPTIONS = [
 | 
				
			|||||||
    id: MailFilterAttachmentType.Attachments,
 | 
					    id: MailFilterAttachmentType.Attachments,
 | 
				
			||||||
    name: $localize`Only process attachments.`,
 | 
					    name: $localize`Only process attachments.`,
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
 | 
					  {
 | 
				
			||||||
 | 
					    id: MailFilterAttachmentType.Email_Only,
 | 
				
			||||||
 | 
					    name: $localize`Process with embedded attachments as .eml`,
 | 
				
			||||||
 | 
					  },
 | 
				
			||||||
  {
 | 
					  {
 | 
				
			||||||
    id: MailFilterAttachmentType.Everything,
 | 
					    id: MailFilterAttachmentType.Everything,
 | 
				
			||||||
    name: $localize`Process all files, including 'inline' attachments.`,
 | 
					    name: $localize`Process as .eml and attachments as separate documents`,
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
]
 | 
					]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -2,7 +2,8 @@ import { ObjectWithId } from './object-with-id'
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
export enum MailFilterAttachmentType {
 | 
					export enum MailFilterAttachmentType {
 | 
				
			||||||
  Attachments = 1,
 | 
					  Attachments = 1,
 | 
				
			||||||
  Everything = 2,
 | 
					  Email_Only = 2,
 | 
				
			||||||
 | 
					  Everything = 3,
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export enum MailAction {
 | 
					export enum MailAction {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user