mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-08 17:17:56 +08:00
23 lines
413 B
JavaScript
23 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
|