Monotone-Parent: a42e52e628a2724b097b0a8aed05b39e75f6a528
Monotone-Revision: 74ae59fc584e99eb514b2c1e615eb58cf0a162db Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2012-01-26T19:56:56 Monotone-Branch: ca.inverse.sogomaint-2.0.2
parent
e942cb8b52
commit
996b6ae817
|
@ -26,6 +26,9 @@
|
|||
|
||||
#import "MAPIStoreFallbackContext.h"
|
||||
|
||||
#undef DEBUG
|
||||
#include <mapistore/mapistore.h>
|
||||
|
||||
@implementation MAPIStoreFallbackContext
|
||||
|
||||
+ (NSString *) MAPIModuleName
|
||||
|
@ -33,6 +36,23 @@
|
|||
return @"fallback";
|
||||
}
|
||||
|
||||
+ (struct mapistore_contexts_list *) listContextsForUser: (NSString *) userName
|
||||
inMemCtx: (TALLOC_CTX *) memCtx
|
||||
{
|
||||
struct mapistore_contexts_list *context;
|
||||
|
||||
context = talloc_zero(memCtx, struct mapistore_contexts_list);
|
||||
context->url = talloc_asprintf (context, "sogo://%s@fallback/",
|
||||
[userName UTF8String]);
|
||||
context->name = "Fallback";
|
||||
context->main_folder = true;
|
||||
context->role = MAPISTORE_FALLBACK_ROLE;
|
||||
context->tag = "tag";
|
||||
context->prev = context;
|
||||
|
||||
return context;
|
||||
}
|
||||
|
||||
- (void) setupBaseFolder: (NSURL *) newURL
|
||||
{
|
||||
baseFolder = [MAPIStoreFSFolder baseFolderWithURL: newURL inContext: self];
|
||||
|
|
Loading…
Reference in New Issue