mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-11 17:17:26 +01:00
Mail form tweaks
Include add button Include add button
This commit is contained in:
parent
2eb2d99a91
commit
98cdf614a5
9 changed files with 116 additions and 118 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue