1 import type { BLOCK_SENDER_CONFIRMATION } from '../mail/constants';
5 AUTO_DELETE_SPAM_AND_TRASH_DAYS,
14 INHERIT_PARENT_FOLDER_COLOR,
15 KEY_TRANSPARENCY_SETTING,
21 PM_SIGNATURE_REFERRAL,
23 REMOVE_IMAGE_METADATA,
33 } from '../mail/mailSettings';
35 export interface AutoResponder {
39 DaysSelected: number[];
46 // Update the useMailSettingsHeartbeat hook when adding a new settings
47 export interface MailSettings {
51 AutoResponder: AutoResponder;
52 AutoSaveContacts: AUTO_SAVE_CONTACTS;
53 ComposerMode: COMPOSER_MODE;
54 MessageButtons: MESSAGE_BUTTONS;
57 ViewLayout: VIEW_LAYOUT;
58 SwipeLeft: SWIPE_ACTION; // default 3
59 SwipeRight: SWIPE_ACTION; // default 0
60 PageSize: MAIL_PAGE_SIZE;
61 HideEmbeddedImages: SHOW_IMAGES;
62 HideRemoteImages: SHOW_IMAGES;
63 Shortcuts: SHORTCUTS; // used by v4
64 PMSignature: PM_SIGNATURE;
65 PMSignatureReferralLink: PM_SIGNATURE_REFERRAL;
67 RightToLeft: DIRECTION;
68 AttachPublicKey: ATTACH_PUBLIC_KEY;
70 PGPScheme: PACKAGE_TYPE;
71 PromptPin: PROMPT_PIN;
72 NumMessagePerPage: number;
73 DraftMIMEType: DRAFT_MIME_TYPES;
74 StickyLabels: STICKY_LABELS;
75 ConfirmLink: CONFIRM_LINK;
76 DelaySendSeconds: DELAY_IN_SECONDS;
77 EnableFolderColor: FOLDER_COLOR;
78 InheritParentFolderColor: INHERIT_PARENT_FOLDER_COLOR;
80 * FontFace value is a FONT_FACES.${FONT}.id value or null.
82 FontFace: string | null;
83 FontSize: number | null;
84 SpamAction: SPAM_ACTION | null;
85 BlockSenderConfirmation: BLOCK_SENDER_CONFIRMATION | null;
86 HideSenderImages: HIDE_SENDER_IMAGES;
87 AutoDeleteSpamAndTrashDays: AUTO_DELETE_SPAM_AND_TRASH_DAYS | null;
88 UnreadFavicon: UNREAD_FAVICON;
89 RecipientLimit: number;
90 AlmostAllMail: ALMOST_ALL_MAIL;
91 ReceiveMIMEType: string;
93 NextMessageOnMove: NEXT_MESSAGE_ON_MOVE;
94 RemoveImageMetadata: REMOVE_IMAGE_METADATA;
95 KT: KEY_TRANSPARENCY_SETTING;