diff --git a/SoObjects/Mailer/SOGoMailFolder.m b/SoObjects/Mailer/SOGoMailFolder.m index 8d2290a4c..ad7c6bbe3 100644 --- a/SoObjects/Mailer/SOGoMailFolder.m +++ b/SoObjects/Mailer/SOGoMailFolder.m @@ -1,15 +1,15 @@ /* - Copyright (C) 2009-2011 Inverse inc. + Copyright (C) 2009-2013 Inverse inc. Copyright (C) 2004-2005 SKYRIX Software AG - This file is part of OpenGroupware.org. + This file is part of SOGo. - OGo is free software; you can redistribute it and/or modify it under + SOGo is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. - OGo is distributed in the hope that it will be useful, but WITHOUT ANY + SOGo is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. @@ -1177,6 +1177,10 @@ static NSString *defaultUserID = @"anyone"; if ([uid hasPrefix: @"@"]) return [[[[context activeUser] domainDefaults] imapAclGroupIdPrefix] stringByAppendingString: [uid substringFromIndex: 1]]; + else if ([[[context activeUser] domainDefaults] forceExternalLoginWithEmail]) + { + return [[[context activeUser] primaryIdentity] objectForKey: @"email"]; + } else return uid; } diff --git a/UI/MailerUI/UIxMailUserRightsEditor.h b/UI/MailerUI/UIxMailUserRightsEditor.h index ef4633fca..f2e7126ac 100644 --- a/UI/MailerUI/UIxMailUserRightsEditor.h +++ b/UI/MailerUI/UIxMailUserRightsEditor.h @@ -1,8 +1,6 @@ /* UIxMailUserRightsEditor.h - this file is part of SOGo * - * Copyright (C) 2007 Inverse inc. - * - * Author: Wolfgang Sourdeau + * Copyright (C) 2007-2013 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 diff --git a/UI/MailerUI/UIxMailUserRightsEditor.m b/UI/MailerUI/UIxMailUserRightsEditor.m index bdd7b55e7..7bab14031 100644 --- a/UI/MailerUI/UIxMailUserRightsEditor.m +++ b/UI/MailerUI/UIxMailUserRightsEditor.m @@ -1,8 +1,6 @@ /* UIxMailUserRightsEditor.m - this file is part of SOGo * - * Copyright (C) 2007 Inverse inc. - * - * Author: Wolfgang Sourdeau + * Copyright (C) 2007-2013 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