mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-12-31 03:52:01 +08:00
120 lines
1.9 KiB
JavaScript
120 lines
1.9 KiB
JavaScript
/* eslint quote-props: 0 */
|
|
|
|
/**
|
|
* @enum {number}
|
|
*/
|
|
export const FolderType = {
|
|
User: 0,
|
|
Inbox: 1,
|
|
Sent: 2,
|
|
Drafts: 3,
|
|
Spam: 4, // JUNK
|
|
Trash: 5,
|
|
Archive: 6,
|
|
NotSpam: 80
|
|
};
|
|
|
|
/**
|
|
* @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'
|
|
};
|
|
|
|
/**
|
|
* @enum {string}
|
|
*/
|
|
export const FolderSortMode = {
|
|
DateDesc: '', // default 'REVERSE DATE'
|
|
DateAsc: 'DATE',
|
|
FromDesc: 'REVERSE FROM',
|
|
FromAsc: 'FROM',
|
|
SizeDesc: 'REVERSE SIZE',
|
|
SizeAsc: 'SIZE',
|
|
SubjectDesc: 'REVERSE SUBJECT',
|
|
SubjectAsc: 'SUBJECT'
|
|
// ToDesc: 'REVERSE TO',
|
|
// ToAsc: 'TO',
|
|
};
|
|
|
|
/**
|
|
* @enum {string}
|
|
*/
|
|
export const ComposeType = {
|
|
Empty: 0,
|
|
Reply: 1,
|
|
ReplyAll: 2,
|
|
Forward: 3,
|
|
ForwardAsAttachment: 4,
|
|
Draft: 5,
|
|
EditAsNew: 6
|
|
};
|
|
|
|
/**
|
|
* @enum {number}
|
|
*/
|
|
export const SetSystemFoldersNotification = {
|
|
None: 0,
|
|
Sent: 1,
|
|
Draft: 2,
|
|
Spam: 3,
|
|
Trash: 4,
|
|
Archive: 5
|
|
};
|
|
|
|
/**
|
|
* @enum {number}
|
|
*/
|
|
export const
|
|
ClientSideKeyNameExpandedFolders = 3,
|
|
ClientSideKeyNameFolderListSize = 4,
|
|
ClientSideKeyNameMessageListSize = 5,
|
|
ClientSideKeyNameLastReplyAction = 6,
|
|
ClientSideKeyNameLastSignMe = 7,
|
|
ClientSideKeyNameMessageHeaderFullInfo = 9,
|
|
ClientSideKeyNameMessageAttachmentControls = 10;
|
|
|
|
/**
|
|
* @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',
|
|
Plain: 'Plain',
|
|
HtmlForced: 'HtmlForced',
|
|
PlainForced: 'PlainForced'
|
|
};
|
|
|
|
/**
|
|
* @enum {number}
|
|
*/
|
|
export const Layout = {
|
|
NoPreview: 0,
|
|
SidePreview: 1,
|
|
BottomPreview: 2
|
|
};
|