mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 12:09:20 +03:00
Split collectionToFileString() from SieveStorage to Sieve
Converted SieveStorage fileStringToCollection() to JavaScript sieveScriptToFilters() Drop the old filtersSave()
This commit is contained in:
parent
d9118fbf90
commit
dd9f277ccf
7 changed files with 509 additions and 554 deletions
|
|
@ -222,20 +222,6 @@ class RemoteUserFetch extends AbstractFetchRemote {
|
|||
this.defaultRequest(fCallback, 'AccountsAndIdentities');
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {?Function} fCallback
|
||||
* @param {Array} filters
|
||||
* @param {string} raw
|
||||
* @param {boolean} isRawIsActive
|
||||
*/
|
||||
filtersSave(fCallback, filters, raw, isRawIsActive) {
|
||||
this.defaultRequest(fCallback, 'FiltersSave', {
|
||||
Raw: raw,
|
||||
RawIsActive: isRawIsActive ? 1 : 0,
|
||||
Filters: filters.map(item => item.toJson())
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {?Function} fCallback
|
||||
* @param {SieveScriptModel} script
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue