From 17b2e3946c5e657309f462a2455e3abd5defa16f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enrique=20J=2E=20Hern=C3=A1ndez=20Blasco?= Date: Wed, 10 Feb 2016 11:32:28 +0100 Subject: [PATCH] oc-notes: Point which folder class must be used while opening subfolders It was using MAPIStoreDBFolder class instead of specialised version MAPIStoreNotesFolder and thus the shared subfolders where set to create messages as normal messages instead of notes. --- OpenChange/MAPIStoreNotesContext.m | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/OpenChange/MAPIStoreNotesContext.m b/OpenChange/MAPIStoreNotesContext.m index 725b0d158..f5b8b1be3 100644 --- a/OpenChange/MAPIStoreNotesContext.m +++ b/OpenChange/MAPIStoreNotesContext.m @@ -1,6 +1,7 @@ /* MAPIStoreNotesContext.m - this file is part of SOGo * * Copyright (C) 2010-2012 Inverse inc. + * Copyright (C) 2016 Enrique J. Hernandez * * Author: Wolfgang Sourdeau * @@ -30,13 +31,30 @@ #undef DEBUG #include +static Class MAPIStoreNotesFolderK; + @implementation MAPIStoreNotesContext ++ (void) initialize +{ + MAPIStoreNotesFolderK = [MAPIStoreNotesFolder class]; +} + + (NSString *) MAPIModuleName { return @"notes"; } ++ (enum mapistore_context_role) MAPIContextRole +{ + return MAPISTORE_NOTES_ROLE; +} + +- (Class) MAPIStoreFolderClass +{ + return MAPIStoreNotesFolderK; +} + + (struct mapistore_contexts_list *) listContextsForUser: (NSString *) userName withIndexing: (struct indexing_context *) indexing inMemCtx: (TALLOC_CTX *) memCtx