mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-06 04:20:33 +00:00
Monotone-Parent: 98f0464d1da2b872d5573c46ffb4cba64b5f1e50
Monotone-Revision: 7c7a8b7547ec7b4ed3b19f65785d05cc377b5a57 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-08-01T18:22:45 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -19,10 +19,16 @@
|
||||
02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include "SOGoMailAccounts.h"
|
||||
#include "SOGoUser+Mail.h"
|
||||
#include "common.h"
|
||||
#include <NGObjWeb/SoObject+SoDAV.h>
|
||||
#import <Foundation/NSString.h>
|
||||
|
||||
#import <NGObjWeb/NSException+HTTP.h>
|
||||
#import <NGObjWeb/WOContext+SoObjects.h>
|
||||
#import <NGExtensions/NSNull+misc.h>
|
||||
#import <NGExtensions/NSObject+Logs.h>
|
||||
|
||||
#import "SOGoUser+Mail.h"
|
||||
|
||||
#import "SOGoMailAccounts.h"
|
||||
|
||||
@implementation SOGoMailAccounts
|
||||
|
||||
@@ -38,7 +44,7 @@ static NSString *AgenorShareLoginMarker = @".-.";
|
||||
- (NSArray *)toManyRelationshipKeys {
|
||||
SOGoUser *user;
|
||||
id account;
|
||||
NSArray *shares;
|
||||
// NSArray *shares;
|
||||
NSString *userLogin;
|
||||
|
||||
/*
|
||||
@@ -63,11 +69,12 @@ static NSString *AgenorShareLoginMarker = @".-.";
|
||||
|
||||
account = [user primaryIMAP4AccountString];
|
||||
if ([account isNotNull]) account = [NSArray arrayWithObject:account];
|
||||
|
||||
shares = [user valueForKey:@"additionalIMAP4AccountStrings"];
|
||||
return ([shares count] == 0)
|
||||
? account
|
||||
: [account arrayByAddingObjectsFromArray:shares];
|
||||
|
||||
return account;
|
||||
// shares = [user valueForKey:@"additionalIMAP4AccountStrings"]
|
||||
// return ([shares count] == 0)
|
||||
// ? account
|
||||
// : [account arrayByAddingObjectsFromArray:shares];
|
||||
}
|
||||
|
||||
- (NSArray *) fetchIdentitiesWithOnlyEmitterAccess: (BOOL) _flag
|
||||
|
||||
Reference in New Issue
Block a user