mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Allow sieve filter to "fileinto" INBOX
This commit is contained in:
parent
0f6b70f63e
commit
070e4ee0fb
3 changed files with 7 additions and 1 deletions
|
|
@ -2,6 +2,8 @@
|
|||
import ko from 'ko';
|
||||
import _ from '_';
|
||||
|
||||
import {settingsGet} from 'Storage/Settings';
|
||||
|
||||
import {FolderType} from 'Common/Enums';
|
||||
import {UNUSED_OPTION_VALUE} from 'Common/Consts';
|
||||
import {isArray, folderListOptionsBuilder} from 'Common/Utils';
|
||||
|
|
@ -35,6 +37,8 @@ class FolderUserStore
|
|||
|
||||
this.currentFolder = ko.observable(null).extend({toggleSubscribeProperty: [this, 'selected']});
|
||||
|
||||
this.sieveAllowFileintoInbox = !!settingsGet('SieveAllowFileintoInbox');
|
||||
|
||||
this.computers();
|
||||
this.subscribers();
|
||||
}
|
||||
|
|
@ -117,7 +121,7 @@ class FolderUserStore
|
|||
this.folderMenuForFilters = ko.computed(
|
||||
() => folderListOptionsBuilder(
|
||||
this.folderListSystem(), this.folderList(),
|
||||
['INBOX'], [['', '']], null, null, null, (item) => (item ? item.localName() : ''))
|
||||
[(this.sieveAllowFileintoInbox ? '' : 'INBOX')], [['', '']], null, null, null, (item) => (item ? item.localName() : ''))
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue