mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-23 04:15:26 +00:00
Added new configuration parameter to limit the window size
This commit is contained in:
@@ -767,7 +767,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
NSMutableString *changeBuffer, *commandsBuffer;
|
||||
BOOL getChanges, first_sync;
|
||||
unsigned int windowSize;
|
||||
unsigned int windowSize, v;
|
||||
|
||||
changeBuffer = [NSMutableString string];
|
||||
commandsBuffer = [NSMutableString string];
|
||||
@@ -783,6 +783,11 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
if (windowSize == 0 || windowSize > 512)
|
||||
windowSize = 100;
|
||||
|
||||
// We check if we must overwrite the windowSize with a system preference. This can be useful
|
||||
// if the user population has large mailboxes and slow connectivity
|
||||
if ((v = [[SOGoSystemDefaults sharedSystemDefaults] maximumSyncWindowSize]))
|
||||
windowSize = v;
|
||||
|
||||
lastServerKey = nil;
|
||||
|
||||
|
||||
Binary file not shown.
@@ -5,6 +5,8 @@ Enhancements
|
||||
- now able to emails to address book on send (#1496)
|
||||
- Sieve folder encoding is now configurable (#2622)
|
||||
- SOGo version is now displayed in preferences window (#2612)
|
||||
- added the SOGoMaximumSyncWindowSize system default to overwrite the
|
||||
maximum number of items returned during an ActiveSync sync operation
|
||||
|
||||
Bug fixes
|
||||
- fixed saved HTML content of draft when attaching a file
|
||||
|
||||
@@ -96,6 +96,7 @@
|
||||
- (int) maximumPingInterval;
|
||||
- (int) maximumSyncInterval;
|
||||
- (int) internalSyncInterval;
|
||||
- (int) maximumSyncWindowSize;
|
||||
|
||||
@end
|
||||
|
||||
|
||||
@@ -621,4 +621,9 @@ _injectConfigurationFromFile (NSMutableDictionary *defaultsDict,
|
||||
return v;
|
||||
}
|
||||
|
||||
- (int) maximumSyncWindowSize
|
||||
{
|
||||
return [self integerForKey: @"SOGoMaximumSyncWindowSize"];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user