mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-28 19:49:20 +03:00
Cleanup Filters/Sieve capa
This commit is contained in:
parent
a9785bc39c
commit
bde4d147bb
9 changed files with 9 additions and 35 deletions
|
|
@ -32,7 +32,6 @@ export const Capa = {
|
|||
Themes: 'THEMES',
|
||||
UserBackground: 'USER_BACKGROUND',
|
||||
Sieve: 'SIEVE',
|
||||
Filters: 'FILTERS',
|
||||
AttachmentThumbnails: 'ATTACHMENT_THUMBNAILS',
|
||||
Templates: 'TEMPLATES',
|
||||
AutoLogout: 'AUTOLOGOUT',
|
||||
|
|
|
|||
|
|
@ -236,7 +236,7 @@ export class FilterModel extends AbstractModel {
|
|||
);
|
||||
}
|
||||
|
||||
filter.actionKeep(1 == json.Keep);
|
||||
filter.actionKeep(0 != json.Keep);
|
||||
filter.actionNoStop(0 == json.Stop);
|
||||
filter.actionMarkAsRead(1 == json.MarkAsRead);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,8 +8,6 @@ export const CapaAdminStore = {
|
|||
this.additionalAccounts(capa(Capa.AdditionalAccounts));
|
||||
this.identities(capa(Capa.Identities));
|
||||
this.attachmentThumbnails(capa(Capa.AttachmentThumbnails));
|
||||
this.sieve(capa(Capa.Sieve));
|
||||
this.filters(capa(Capa.Filters));
|
||||
this.themes(capa(Capa.Themes));
|
||||
this.userBackground(capa(Capa.UserBackground));
|
||||
this.openPGP(capa(Capa.OpenPGP));
|
||||
|
|
@ -23,8 +21,6 @@ ko.addObservablesTo(CapaAdminStore, {
|
|||
additionalAccounts: false,
|
||||
identities: false,
|
||||
attachmentThumbnails: false,
|
||||
sieve: false,
|
||||
filters: false,
|
||||
themes: true,
|
||||
userBackground: false,
|
||||
openPGP: false,
|
||||
|
|
|
|||
|
|
@ -2,8 +2,6 @@ import { StorageResultType, Notification } from 'Common/Enums';
|
|||
import { pInt, pString } from 'Common/Utils';
|
||||
import { i18n } from 'Common/Translator';
|
||||
|
||||
import { CapaAdminStore } from 'Stores/Admin/Capa';
|
||||
|
||||
import Remote from 'Remote/Admin/Fetch';
|
||||
|
||||
import { decorateKoCommands } from 'Knoin/Knoin';
|
||||
|
|
@ -56,8 +54,6 @@ class DomainPopupView extends AbstractViewPopup {
|
|||
});
|
||||
|
||||
this.addComputables({
|
||||
allowSieve: () => CapaAdminStore.filters() && CapaAdminStore.sieve(),
|
||||
|
||||
headerText: () => {
|
||||
const name = this.name(),
|
||||
aliasName = this.aliasName();
|
||||
|
|
@ -85,14 +81,13 @@ class DomainPopupView extends AbstractViewPopup {
|
|||
|
||||
domainIsComputed: () => {
|
||||
const usePhpMail = this.smtpPhpMail(),
|
||||
allowSieve = this.allowSieve(),
|
||||
useSieve = this.useSieve();
|
||||
|
||||
return (
|
||||
this.name() &&
|
||||
this.imapServer() &&
|
||||
this.imapPort() &&
|
||||
(allowSieve && useSieve ? this.sieveServer() && this.sievePort() : true) &&
|
||||
(useSieve ? this.sieveServer() && this.sievePort() : true) &&
|
||||
((this.smtpServer() && this.smtpPort()) || usePhpMail)
|
||||
);
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue