2021-01-25 05:58:06 +08:00
|
|
|
/* eslint quote-props: 0 */
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @enum {number}
|
|
|
|
*/
|
|
|
|
export const FolderType = {
|
2021-08-25 00:23:17 +08:00
|
|
|
Inbox: 1,
|
|
|
|
Sent: 2,
|
|
|
|
Drafts: 3,
|
2022-12-15 20:49:39 +08:00
|
|
|
Junk: 4, // Spam
|
2021-08-25 00:23:17 +08:00
|
|
|
Trash: 5,
|
2022-12-15 20:49:39 +08:00
|
|
|
Archive: 6
|
|
|
|
/*
|
|
|
|
IMPORTANT : 10;
|
|
|
|
FLAGGED : 11;
|
|
|
|
ALL : 13;
|
|
|
|
// TODO: SnappyMail
|
|
|
|
TEMPLATES : 19;
|
|
|
|
// Kolab
|
|
|
|
CONFIGURATION : 20;
|
|
|
|
CALENDAR : 21;
|
|
|
|
CONTACTS : 22;
|
|
|
|
TASKS : 23;
|
|
|
|
NOTES : 24;
|
|
|
|
FILES : 25;
|
|
|
|
JOURNAL : 26;
|
|
|
|
*/
|
2021-01-25 05:58:06 +08:00
|
|
|
};
|
|
|
|
|
2021-10-14 15:43:20 +08:00
|
|
|
/**
|
|
|
|
* @enum {string}
|
|
|
|
*/
|
|
|
|
export const FolderMetadataKeys = {
|
|
|
|
// RFC 5464
|
|
|
|
Comment: '/private/comment',
|
|
|
|
CommentShared: '/shared/comment',
|
|
|
|
// RFC 6154
|
|
|
|
SpecialUse: '/private/specialuse',
|
|
|
|
// Kolab
|
|
|
|
KolabFolderType: '/private/vendor/kolab/folder-type',
|
|
|
|
KolabFolderTypeShared: '/shared/vendor/kolab/folder-type'
|
|
|
|
};
|
|
|
|
|
2021-01-25 05:58:06 +08:00
|
|
|
/**
|
|
|
|
* @enum {string}
|
|
|
|
*/
|
|
|
|
export const ComposeType = {
|
2022-03-08 16:27:32 +08:00
|
|
|
Empty: 0,
|
|
|
|
Reply: 1,
|
|
|
|
ReplyAll: 2,
|
|
|
|
Forward: 3,
|
|
|
|
ForwardAsAttachment: 4,
|
|
|
|
Draft: 5,
|
|
|
|
EditAsNew: 6
|
2021-01-25 05:58:06 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @enum {number}
|
|
|
|
*/
|
2022-03-14 22:42:05 +08:00
|
|
|
export const
|
|
|
|
ClientSideKeyNameExpandedFolders = 3,
|
|
|
|
ClientSideKeyNameFolderListSize = 4,
|
|
|
|
ClientSideKeyNameMessageListSize = 5,
|
|
|
|
ClientSideKeyNameLastSignMe = 7,
|
|
|
|
ClientSideKeyNameMessageHeaderFullInfo = 9,
|
|
|
|
ClientSideKeyNameMessageAttachmentControls = 10;
|
2021-01-25 05:58:06 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @enum {number}
|
|
|
|
*/
|
|
|
|
export const MessageSetAction = {
|
|
|
|
SetSeen: 0,
|
|
|
|
UnsetSeen: 1,
|
|
|
|
SetFlag: 2,
|
|
|
|
UnsetFlag: 3
|
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @enum {number}
|
|
|
|
*/
|
|
|
|
export const MessagePriority = {
|
|
|
|
Low: 5,
|
|
|
|
Normal: 3,
|
|
|
|
High: 1
|
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @enum {string}
|
|
|
|
*/
|
|
|
|
export const EditorDefaultType = {
|
|
|
|
Html: 'Html',
|
2022-04-30 06:43:38 +08:00
|
|
|
Plain: 'Plain'
|
2021-01-25 05:58:06 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @enum {number}
|
|
|
|
*/
|
|
|
|
export const Layout = {
|
|
|
|
NoPreview: 0,
|
|
|
|
SidePreview: 1,
|
|
|
|
BottomPreview: 2
|
|
|
|
};
|