1 import { MIME_TYPES } from '../constants';
2 import type { MailSettings } from '../interfaces';
4 export const MAX_RECIPIENTS = 100;
6 export type DRAFT_MIME_TYPES = MIME_TYPES.PLAINTEXT | MIME_TYPES.DEFAULT;
8 export enum SHOW_MOVED {
15 export enum HIDE_SENDER_IMAGES {
20 export enum SHOW_IMAGES {
25 export enum IMAGE_PROXY_FLAGS {
32 export enum VIEW_LAYOUT {
37 export enum VIEW_MODE {
42 export enum COMPOSER_MODE {
47 export enum MESSAGE_BUTTONS {
52 export enum CONFIRM_LINK {
57 export enum AUTO_SAVE_CONTACTS {
62 export enum SHORTCUTS {
67 export enum PM_SIGNATURE {
72 export enum PM_SIGNATURE_REFERRAL {
77 export enum FOLDER_COLOR {
81 export enum INHERIT_PARENT_FOLDER_COLOR {
86 export enum ATTACH_PUBLIC_KEY {
96 export enum PACKAGE_TYPE {
102 SEND_CLEAR_MIME = 32,
105 export enum PROMPT_PIN {
110 export enum STICKY_LABELS {
115 export enum DELAY_IN_SECONDS {
122 export enum UNREAD_FAVICON {
127 export enum DIRECTION {
132 export enum ALMOST_ALL_MAIL {
137 export enum AUTO_DELETE_SPAM_AND_TRASH_DAYS {
142 export enum SPAM_ACTION {
147 export enum SWIPE_ACTION {
155 export enum MAIL_PAGE_SIZE {
161 export enum KEY_TRANSPARENCY_SETTING {
166 export enum NEXT_MESSAGE_ON_MOVE {
167 DISABLED = 0, // disabled by the user
168 DEFAULT = 1, // enabled (default value)
169 ENABLED = 2, // enabled by the user
172 export enum REMOVE_IMAGE_METADATA {
177 export const DEFAULT_MAILSETTINGS: MailSettings = {
189 Zone: 'Europe/Zurich',
191 AutoSaveContacts: AUTO_SAVE_CONTACTS.ENABLED,
192 ComposerMode: COMPOSER_MODE.POPUP,
193 MessageButtons: MESSAGE_BUTTONS.READ_UNREAD,
194 HideRemoteImages: SHOW_IMAGES.SHOW,
195 HideEmbeddedImages: SHOW_IMAGES.SHOW,
196 ShowMoved: SHOW_MOVED.NONE,
197 ViewMode: VIEW_MODE.GROUP,
198 ViewLayout: VIEW_LAYOUT.ROW,
201 Shortcuts: SHORTCUTS.ENABLED,
202 PMSignature: PM_SIGNATURE.DISABLED,
203 ImageProxy: IMAGE_PROXY_FLAGS.PROXY,
204 RightToLeft: DIRECTION.LEFT_TO_RIGHT,
205 AttachPublicKey: ATTACH_PUBLIC_KEY.DISABLED,
207 PGPScheme: PACKAGE_TYPE.SEND_PGP_MIME,
208 PromptPin: PROMPT_PIN.DISABLED,
209 NumMessagePerPage: 50,
210 DraftMIMEType: MIME_TYPES.DEFAULT,
211 StickyLabels: STICKY_LABELS.DISABLED,
212 ConfirmLink: CONFIRM_LINK.CONFIRM,
213 DelaySendSeconds: DELAY_IN_SECONDS.MEDIUM,
214 EnableFolderColor: FOLDER_COLOR.DISABLED,
215 InheritParentFolderColor: INHERIT_PARENT_FOLDER_COLOR.ENABLED,
218 PMSignatureReferralLink: PM_SIGNATURE_REFERRAL.DISABLED,
220 BlockSenderConfirmation: null,
221 HideSenderImages: HIDE_SENDER_IMAGES.SHOW,
222 AutoDeleteSpamAndTrashDays: null,
223 UnreadFavicon: UNREAD_FAVICON.DISABLED,
224 RecipientLimit: MAX_RECIPIENTS,
225 AlmostAllMail: ALMOST_ALL_MAIL.DISABLED,
226 ReceiveMIMEType: MIME_TYPES.DEFAULT,
227 ShowMIMEType: MIME_TYPES.DEFAULT,
228 PageSize: MAIL_PAGE_SIZE.FIFTY,
229 NextMessageOnMove: NEXT_MESSAGE_ON_MOVE.DEFAULT,
230 RemoveImageMetadata: REMOVE_IMAGE_METADATA.DISABLED,
231 KT: KEY_TRANSPARENCY_SETTING.DISABLED,