mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 20:19:22 +03:00
Improved tags #419
This commit is contained in:
parent
c0994b38e8
commit
9e4edd8843
5 changed files with 42 additions and 6 deletions
|
|
@ -263,11 +263,17 @@ export class FolderModel extends AbstractModel {
|
|||
|
||||
kolabType: null,
|
||||
|
||||
collapsed: true
|
||||
collapsed: true,
|
||||
|
||||
tagsAllowed: false
|
||||
});
|
||||
|
||||
this.flags = ko.observableArray();
|
||||
this.permanentFlags = ko.observableArray();
|
||||
|
||||
this.addSubscribables({
|
||||
kolabType: sValue => this.metadata[FolderMetadataKeys.KolabFolderType] = sValue
|
||||
kolabType: sValue => this.metadata[FolderMetadataKeys.KolabFolderType] = sValue,
|
||||
permanentFlags: aValue => this.tagsAllowed(aValue.includes('\\*'))
|
||||
});
|
||||
|
||||
this.subFolders = ko.observableArray(new FolderCollectionModel);
|
||||
|
|
@ -296,9 +302,20 @@ export class FolderModel extends AbstractModel {
|
|||
}
|
||||
})
|
||||
.extend({ notify: 'always' });
|
||||
|
||||
this.flags = ko.observableArray();
|
||||
this.permanentFlags = ko.observableArray();
|
||||
/*
|
||||
https://www.rfc-editor.org/rfc/rfc8621.html#section-2
|
||||
"myRights": {
|
||||
"mayAddItems": true,
|
||||
"mayRename": false,
|
||||
"maySubmit": true,
|
||||
"mayDelete": false,
|
||||
"maySetKeywords": true,
|
||||
"mayRemoveItems": true,
|
||||
"mayCreateChild": true,
|
||||
"maySetSeen": true,
|
||||
"mayReadItems": true
|
||||
},
|
||||
*/
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -113,11 +113,21 @@ export class MessageModel extends AbstractModel {
|
|||
this.flags = ko.observableArray();
|
||||
|
||||
const ignoredTags = [
|
||||
'$forwarded',
|
||||
// Mailo
|
||||
'sent',
|
||||
// KMail
|
||||
'$sent',
|
||||
'$signed',
|
||||
'$error',
|
||||
'$queued',
|
||||
'$forwarded'
|
||||
// GMail
|
||||
'$replied',
|
||||
'$attachment',
|
||||
'$notphishing',
|
||||
'$phishing',
|
||||
'junk',
|
||||
'nonjunk'
|
||||
];
|
||||
|
||||
this.addComputables({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue