mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-23 04:15:26 +00:00
Monotone-Parent: f06ad83d51ba56ba4489d76a7acc0985afe86e54
Monotone-Revision: d98519ee9416f281001d26da0a9ba8a76729997b Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-05-25T21:19:31 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -19,8 +19,10 @@
|
||||
02111-1307, USA.
|
||||
*/
|
||||
|
||||
#import <Mailer/SOGoMailObject.h>
|
||||
#import <SOGo/NSString+Utilities.h>
|
||||
#import <SoObjects/Mailer/SOGoMailObject.h>
|
||||
#import <SoObjects/Mailer/SOGoMailAccounts.h>
|
||||
#import <SoObjects/SOGo/NSString+Utilities.h>
|
||||
#import <SoObjects/SOGo/NSObject+Utilities.h>
|
||||
#import <SOGoUI/UIxComponent.h>
|
||||
#import "UIxMailMainFrame.h"
|
||||
|
||||
@@ -48,6 +50,14 @@ static NSString *treeRootClassName = nil;
|
||||
}
|
||||
|
||||
/* accessors */
|
||||
- (NSString *) mailAccounts
|
||||
{
|
||||
SOGoMailAccounts *co;
|
||||
|
||||
co = [self clientObject];
|
||||
|
||||
return [[co fetchAllIdentities] jsonRepresentation];
|
||||
}
|
||||
|
||||
- (NSString *)treeRootClassName {
|
||||
return treeRootClassName;
|
||||
@@ -186,25 +196,25 @@ static NSString *treeRootClassName = nil;
|
||||
}
|
||||
|
||||
/* FIXME: migrated methods which might not work yet... */
|
||||
#warning check this
|
||||
- (NSString *) mailFolderName
|
||||
{
|
||||
NSMutableArray *mailboxes;
|
||||
SOGoMailObject *currentObject;
|
||||
// #warning check this
|
||||
// - (NSString *) mailFolderName
|
||||
// {
|
||||
// NSMutableArray *mailboxes;
|
||||
// SOGoMailObject *currentObject;
|
||||
|
||||
mailboxes = [NSMutableArray new];
|
||||
[mailboxes autorelease];
|
||||
// mailboxes = [NSMutableArray new];
|
||||
// [mailboxes autorelease];
|
||||
|
||||
currentObject = [self clientObject];
|
||||
while (![currentObject isKindOfClass: [SOGoMailAccounts class]])
|
||||
{
|
||||
[mailboxes insertObject: [currentObject nameInContainer] atIndex: 0];
|
||||
currentObject = [currentObject container];
|
||||
}
|
||||
// currentObject = [self clientObject];
|
||||
// while (![currentObject isKindOfClass: [SOGoMailAccounts class]])
|
||||
// {
|
||||
// [mailboxes insertObject: [currentObject nameInContainer] atIndex: 0];
|
||||
// currentObject = [currentObject container];
|
||||
// }
|
||||
|
||||
return [NSString stringWithFormat: @"/%@",
|
||||
[mailboxes componentsJoinedByString: @"/"]];
|
||||
}
|
||||
// return [NSString stringWithFormat: @"/%@",
|
||||
// [mailboxes componentsJoinedByString: @"/"]];
|
||||
// }
|
||||
|
||||
- (id) composeAction
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user