mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-06 22:08:51 +00:00
(fix) respect disabled state of sending rate-limiting (fixes #4198)
This commit is contained in:
@@ -578,12 +578,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
|
||||
|
||||
@@ -753,7 +753,7 @@ static NSArray *infoKeys = nil;
|
||||
NSDictionary *messageSubmissions;
|
||||
SOGoSystemDefaults *dd;
|
||||
|
||||
int messages_count, recipients_count;
|
||||
NSUInteger messages_count, recipients_count;
|
||||
|
||||
messageSubmissions = [[SOGoCache sharedCache] messageSubmissionsCountForLogin: [[context activeUser] login]];
|
||||
dd = [SOGoSystemDefaults sharedSystemDefaults];
|
||||
|
||||
Reference in New Issue
Block a user