From 996b6ae8177dc4cc343aff533068f003892ce22e Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Thu, 26 Jan 2012 19:56:56 +0000 Subject: [PATCH] Monotone-Parent: a42e52e628a2724b097b0a8aed05b39e75f6a528 Monotone-Revision: 74ae59fc584e99eb514b2c1e615eb58cf0a162db Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2012-01-26T19:56:56 Monotone-Branch: ca.inverse.sogo --- OpenChange/MAPIStoreFallbackContext.m | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/OpenChange/MAPIStoreFallbackContext.m b/OpenChange/MAPIStoreFallbackContext.m index e48b63802..8368671e3 100644 --- a/OpenChange/MAPIStoreFallbackContext.m +++ b/OpenChange/MAPIStoreFallbackContext.m @@ -26,6 +26,9 @@ #import "MAPIStoreFallbackContext.h" +#undef DEBUG +#include + @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];