mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-11-10 09:02:45 +08:00
85 lines
1.3 KiB
JavaScript
85 lines
1.3 KiB
JavaScript
/* eslint quote-props: 0 */
|
|
|
|
/**
|
|
* @enum {number}
|
|
*/
|
|
export const FolderType = {
|
|
Inbox: 1,
|
|
Sent: 2,
|
|
Drafts: 3,
|
|
Junk: 4, // Spam
|
|
Trash: 5,
|
|
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;
|
|
*/
|
|
},
|
|
|
|
/**
|
|
* @enum {string}
|
|
*/
|
|
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'
|
|
},
|
|
|
|
/**
|
|
* @enum {string}
|
|
*/
|
|
ComposeType = {
|
|
Empty: 0,
|
|
Reply: 1,
|
|
ReplyAll: 2,
|
|
Forward: 3,
|
|
ForwardAsAttachment: 4,
|
|
Draft: 5,
|
|
EditAsNew: 6
|
|
},
|
|
|
|
/**
|
|
* @enum {number}
|
|
*/
|
|
ClientSideKeyNameExpandedFolders = 3,
|
|
ClientSideKeyNameFolderListSize = 4,
|
|
ClientSideKeyNameMessageListSize = 5,
|
|
ClientSideKeyNameLastSignMe = 7,
|
|
ClientSideKeyNameMessageHeaderFullInfo = 9,
|
|
ClientSideKeyNameMessageAttachmentControls = 10,
|
|
|
|
/**
|
|
* @enum {number}
|
|
*/
|
|
MessageSetAction = {
|
|
SetSeen: 0,
|
|
UnsetSeen: 1,
|
|
SetFlag: 2,
|
|
UnsetFlag: 3,
|
|
SetDeleted: 4,
|
|
UnsetDeleted: 5
|
|
},
|
|
|
|
/**
|
|
* @enum {number}
|
|
*/
|
|
//LayoutNoView = 0,
|
|
LayoutSideView = 1,
|
|
LayoutBottomView = 2
|
|
;
|