(fix) respect disabled state of sending rate-limiting (fixes #4198)
parent
919d1ef6be
commit
07fa202523
|
@ -591,12 +591,26 @@ _injectConfigurationFromFile (NSMutableDictionary *defaultsDict,
|
|||
//
|
||||
- (int) maximumMessageSubmissionCount
|
||||
{
|
||||
return [self integerForKey: @"SOGoMaximumMessageSubmissionCount"];
|
||||
NSUInteger v;
|
||||
|
||||
v = [self integerForKey: @"SOGoMaximumMessageSubmissionCount"];
|
||||
|
||||
if (!v)
|
||||
return NSUIntegerMax;
|
||||
|
||||
return v;
|
||||
}
|
||||
|
||||
- (int) maximumRecipientCount
|
||||
{
|
||||
return [self integerForKey: @"SOGoMaximumRecipientCount"];
|
||||
NSUInteger v;
|
||||
|
||||
v = [self integerForKey: @"SOGoMaximumRecipientCount"];
|
||||
|
||||
if (!v)
|
||||
return NSUIntegerMax;
|
||||
|
||||
return v;
|
||||
}
|
||||
|
||||
- (int) maximumSubmissionInterval
|
||||
|
|
|
@ -816,7 +816,7 @@ static NSArray *infoKeys = nil;
|
|||
SOGoSystemDefaults *dd;
|
||||
id <WOActionResults> response;
|
||||
|
||||
int messages_count, recipients_count;
|
||||
NSUInteger messages_count, recipients_count;
|
||||
|
||||
messageSubmissions = [[SOGoCache sharedCache] messageSubmissionsCountForLogin: [[context activeUser] login]];
|
||||
dd = [SOGoSystemDefaults sharedSystemDefaults];
|
||||
|
|
Loading…
Reference in New Issue