mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-05 16:35:10 +00:00
Added message submissions rate-limiting support
This commit is contained in:
@@ -513,6 +513,9 @@ _injectConfigurationFromFile (NSMutableDictionary *defaultsDict,
|
||||
return [self boolForKey: @"SOGoEnablePublicAccess"];
|
||||
}
|
||||
|
||||
//
|
||||
//
|
||||
//
|
||||
- (int) maximumFailedLoginCount
|
||||
{
|
||||
return [self integerForKey: @"SOGoMaximumFailedLoginCount"];
|
||||
@@ -542,4 +545,41 @@ _injectConfigurationFromFile (NSMutableDictionary *defaultsDict,
|
||||
return v;
|
||||
}
|
||||
|
||||
//
|
||||
//
|
||||
//
|
||||
- (int) maximumMessageSubmissionCount
|
||||
{
|
||||
return [self integerForKey: @"SOGoMaximumMessageSubmissionCount"];
|
||||
}
|
||||
|
||||
- (int) maximumRecipientCount
|
||||
{
|
||||
return [self integerForKey: @"SOGoMaximumRecipientCount"];
|
||||
}
|
||||
|
||||
- (int) maximumSubmissionInterval
|
||||
{
|
||||
int v;
|
||||
|
||||
v = [self integerForKey: @"SOGoMaximumSubmissionInterval"];
|
||||
|
||||
if (!v)
|
||||
v = 30;
|
||||
|
||||
return v;
|
||||
}
|
||||
|
||||
- (int) messageSubmissionBlockInterval
|
||||
{
|
||||
int v;
|
||||
|
||||
v = [self integerForKey: @"SOGoMessageSubmissionBlockInterval"];
|
||||
|
||||
if (!v)
|
||||
v = 300;
|
||||
|
||||
return v;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user