mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-05 20:10:33 +00:00
Monotone-Parent: edb893da8ce0f655c7df27ce11022ddf6b26e6a0
Monotone-Revision: 0bad93574cbb34f80f8e581a8347fec75a28f612 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2010-08-09T13:30:21 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -80,26 +80,4 @@
|
||||
return filterId;
|
||||
}
|
||||
|
||||
- (NSString *) firstMailAccount
|
||||
{
|
||||
NSArray *accounts;
|
||||
NSDictionary *account;
|
||||
NSString *login, *accountName;
|
||||
SOGoUser *ownerUser;
|
||||
|
||||
login = [[self clientObject] nameInContainer];
|
||||
ownerUser = [SOGoUser userWithLogin: login];
|
||||
|
||||
accounts = [ownerUser mailAccounts];
|
||||
if ([accounts count] > 0)
|
||||
{
|
||||
account = [accounts objectAtIndex: 0];
|
||||
accountName = [[account objectForKey: @"name"] asCSSIdentifier];
|
||||
}
|
||||
else
|
||||
accountName = @"";
|
||||
|
||||
return accountName;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user