mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-09 09:38:07 +08:00
24 lines
413 B
JavaScript
24 lines
413 B
JavaScript
|
class SyncPolicy {
|
||
|
static defaultPolicy() {
|
||
|
return {
|
||
|
afterSync: 'close',
|
||
|
interval: 120 * 1000,
|
||
|
folderSyncOptions: {
|
||
|
deepFolderScan: 10 * 60 * 1000,
|
||
|
},
|
||
|
};
|
||
|
}
|
||
|
|
||
|
static activeUserPolicy() {
|
||
|
return {
|
||
|
afterSync: 'idle',
|
||
|
interval: 30 * 1000,
|
||
|
folderSyncOptions: {
|
||
|
deepFolderScan: 5 * 60 * 1000,
|
||
|
},
|
||
|
};
|
||
|
}
|
||
|
}
|
||
|
|
||
|
module.exports = SyncPolicy
|