Added new configuration parameter to limit the window size
parent
5739356f88
commit
0d1c39ca71
|
@ -767,7 +767,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
NSMutableString *changeBuffer, *commandsBuffer;
|
NSMutableString *changeBuffer, *commandsBuffer;
|
||||||
BOOL getChanges, first_sync;
|
BOOL getChanges, first_sync;
|
||||||
unsigned int windowSize;
|
unsigned int windowSize, v;
|
||||||
|
|
||||||
changeBuffer = [NSMutableString string];
|
changeBuffer = [NSMutableString string];
|
||||||
commandsBuffer = [NSMutableString string];
|
commandsBuffer = [NSMutableString string];
|
||||||
|
@ -783,6 +783,11 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
if (windowSize == 0 || windowSize > 512)
|
if (windowSize == 0 || windowSize > 512)
|
||||||
windowSize = 100;
|
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;
|
lastServerKey = nil;
|
||||||
|
|
||||||
|
|
Binary file not shown.
2
NEWS
2
NEWS
|
@ -5,6 +5,8 @@ Enhancements
|
||||||
- now able to emails to address book on send (#1496)
|
- now able to emails to address book on send (#1496)
|
||||||
- Sieve folder encoding is now configurable (#2622)
|
- Sieve folder encoding is now configurable (#2622)
|
||||||
- SOGo version is now displayed in preferences window (#2612)
|
- 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
|
Bug fixes
|
||||||
- fixed saved HTML content of draft when attaching a file
|
- fixed saved HTML content of draft when attaching a file
|
||||||
|
|
|
@ -96,6 +96,7 @@
|
||||||
- (int) maximumPingInterval;
|
- (int) maximumPingInterval;
|
||||||
- (int) maximumSyncInterval;
|
- (int) maximumSyncInterval;
|
||||||
- (int) internalSyncInterval;
|
- (int) internalSyncInterval;
|
||||||
|
- (int) maximumSyncWindowSize;
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
|
|
@ -621,4 +621,9 @@ _injectConfigurationFromFile (NSMutableDictionary *defaultsDict,
|
||||||
return v;
|
return v;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (int) maximumSyncWindowSize
|
||||||
|
{
|
||||||
|
return [self integerForKey: @"SOGoMaximumSyncWindowSize"];
|
||||||
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
Loading…
Reference in New Issue