now possible to limit automatic forwards to internal/external domains

This commit is contained in:
Ludovic Marcotte
2015-02-11 14:30:40 -05:00
parent 55ae4cb8c0
commit 322f72626a
7 changed files with 64 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
/* SOGoDomainDefaults.m - this file is part of SOGo
*
* Copyright (C) 2009-2014 Inverse inc.
* Copyright (C) 2009-2015 Inverse inc.
*
* This file is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -201,6 +201,15 @@
return [self boolForKey: @"SOGoForwardEnabled"];
}
- (int) forwardConstraints
{
unsigned int v;
v = [self integerForKey: @"SOGoForwardConstraints"];
return (v > 2 ? 0 : v);
}
- (BOOL) vacationEnabled
{
return [self boolForKey: @"SOGoVacationEnabled"];