(feat) now possible to specify which domains you can forward your mails to

This commit is contained in:
Ludovic Marcotte
2019-08-15 12:48:53 -04:00
parent f7f9cb29e0
commit 04f91b8948
8 changed files with 39 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
/* UIxPreferences.m - this file is part of SOGo
*
* Copyright (C) 2007-2018 Inverse inc.
* Copyright (C) 2007-2019 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
@@ -1495,6 +1495,18 @@ static NSArray *reminderValues = nil;
return [NSString stringWithFormat: @"%d", [dd forwardConstraints]];
}
- (NSString *) forwardConstraintsDomains
{
NSMutableArray *domains;
SOGoDomainDefaults *dd;
dd = [[context activeUser] domainDefaults];
domains = [NSMutableArray array];
[domains addObjectsFromArray: [dd forwardConstraintsDomains]];
return [domains jsonRepresentation];
}
//
// Used by templates
//