mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-07-28 18:24:38 -05:00
Mail form tweaks
Include add button Include add button
This commit is contained in:
@@ -6,12 +6,6 @@ export enum IMAPSecurity {
|
||||
STARTTLS = 3,
|
||||
}
|
||||
|
||||
export const IMAPSecurityLabels: Array<{ id: number; name: string }> = [
|
||||
{ id: IMAPSecurity.None, name: $localize`No encryption` },
|
||||
{ id: IMAPSecurity.SSL, name: $localize`SSL` },
|
||||
{ id: IMAPSecurity.STARTTLS, name: $localize`STARTTLS` },
|
||||
]
|
||||
|
||||
export interface PaperlessMailAccount extends ObjectWithId {
|
||||
name: string
|
||||
|
||||
|
@@ -1,28 +1,10 @@
|
||||
import { ObjectWithId } from './object-with-id'
|
||||
import { PaperlessCorrespondent } from './paperless-correspondent'
|
||||
import { PaperlessDocumentType } from './paperless-document-type'
|
||||
import { PaperlessMailAccount } from './paperless-mail-account'
|
||||
import { PaperlessTag } from './paperless-tag'
|
||||
|
||||
export enum MailFilterAttachmentType {
|
||||
Attachments = 1,
|
||||
Everything = 2,
|
||||
}
|
||||
|
||||
export const MailFilterAttachmentTypeOptions: Array<{
|
||||
id: number
|
||||
name: string
|
||||
}> = [
|
||||
{
|
||||
id: MailFilterAttachmentType.Attachments,
|
||||
name: $localize`Only process attachments.`,
|
||||
},
|
||||
{
|
||||
id: MailFilterAttachmentType.Everything,
|
||||
name: $localize`Process all files, including 'inline' attachments.`,
|
||||
},
|
||||
]
|
||||
|
||||
export enum MailAction {
|
||||
Delete = 1,
|
||||
Move = 2,
|
||||
@@ -31,42 +13,11 @@ export enum MailAction {
|
||||
Tag = 5,
|
||||
}
|
||||
|
||||
export const MailActionOptions: Array<{ id: number; name: string }> = [
|
||||
{ id: MailAction.Delete, name: $localize`Delete` },
|
||||
{ id: MailAction.Move, name: $localize`Move to specified folder` },
|
||||
{
|
||||
id: MailAction.MarkRead,
|
||||
name: $localize`Mark as read, don't process read mails`,
|
||||
},
|
||||
{
|
||||
id: MailAction.Flag,
|
||||
name: $localize`Flag the mail, don't process flagged mails`,
|
||||
},
|
||||
{
|
||||
id: MailAction.Tag,
|
||||
name: $localize`Tag the mail with specified tag, don't process tagged mails`,
|
||||
},
|
||||
]
|
||||
|
||||
export enum MailMetadataTitleOption {
|
||||
FromSubject = 1,
|
||||
FromFilename = 2,
|
||||
}
|
||||
|
||||
export const MailMetadataTitleOptionOptions: Array<{
|
||||
id: number
|
||||
name: string
|
||||
}> = [
|
||||
{
|
||||
id: MailMetadataTitleOption.FromSubject,
|
||||
name: $localize`Use subject as title`,
|
||||
},
|
||||
{
|
||||
id: MailMetadataTitleOption.FromFilename,
|
||||
name: $localize`Use attachment filename as title`,
|
||||
},
|
||||
]
|
||||
|
||||
export enum MailMetadataCorrespondentOption {
|
||||
FromNothing = 1,
|
||||
FromEmail = 2,
|
||||
@@ -74,28 +25,6 @@ export enum MailMetadataCorrespondentOption {
|
||||
FromCustom = 4,
|
||||
}
|
||||
|
||||
export const MailMetadataCorrespondentOptionOptions: Array<{
|
||||
id: number
|
||||
name: string
|
||||
}> = [
|
||||
{
|
||||
id: MailMetadataCorrespondentOption.FromNothing,
|
||||
name: $localize`Do not assign a correspondent`,
|
||||
},
|
||||
{
|
||||
id: MailMetadataCorrespondentOption.FromEmail,
|
||||
name: $localize`Use mail address`,
|
||||
},
|
||||
{
|
||||
id: MailMetadataCorrespondentOption.FromName,
|
||||
name: $localize`Use name (or mail address if not available)`,
|
||||
},
|
||||
{
|
||||
id: MailMetadataCorrespondentOption.FromCustom,
|
||||
name: $localize`Use correspondent selected below`,
|
||||
},
|
||||
]
|
||||
|
||||
export interface PaperlessMailRule extends ObjectWithId {
|
||||
name: string
|
||||
|
||||
|
Reference in New Issue
Block a user