From 39844d318903e116d2bd56dc5fbc6a7917cf5751 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Mon, 13 Dec 2010 17:08:27 +0000 Subject: [PATCH] Monotone-Parent: 8b45cc6424e2b06583c8a2dd876057159db48763 Monotone-Revision: 1bf5f82c40c92c564dab6ea7d0c2736a14386404 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2010-12-13T17:08:27 Monotone-Branch: ca.inverse.sogo --- OpenChange/MAPIStoreOutboxContext.h | 6 +++--- OpenChange/MAPIStoreOutboxContext.m | 13 ++++++++++--- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/OpenChange/MAPIStoreOutboxContext.h b/OpenChange/MAPIStoreOutboxContext.h index d103ba40b..aea74496c 100644 --- a/OpenChange/MAPIStoreOutboxContext.h +++ b/OpenChange/MAPIStoreOutboxContext.h @@ -1,12 +1,12 @@ /* MAPIStoreOutboxContext.h - this file is part of SOGo * - * Copyright (C) 2010 Wolfgang Sourdeau + * Copyright (C) 2010 Inverse inc. * - * Author: Wolfgang Sourdeau + * Author: Wolfgang Sourdeau * * This file is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) + * the Free Software Foundation; either version 3, or (at your option) * any later version. * * This file is distributed in the hope that it will be useful, diff --git a/OpenChange/MAPIStoreOutboxContext.m b/OpenChange/MAPIStoreOutboxContext.m index ef5cee9d4..1506402da 100644 --- a/OpenChange/MAPIStoreOutboxContext.m +++ b/OpenChange/MAPIStoreOutboxContext.m @@ -1,12 +1,12 @@ /* MAPIStoreOutboxContext.m - this file is part of SOGo * - * Copyright (C) 2010 Wolfgang Sourdeau + * Copyright (C) 2010 Inverse inc. * - * Author: Wolfgang Sourdeau + * Author: Wolfgang Sourdeau * * This file is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) + * the Free Software Foundation; either version 3, or (at your option) * any later version. * * This file is distributed in the hope that it will be useful, @@ -55,6 +55,7 @@ SOGoUserFolder *userFolder; SOGoMailAccounts *accountsFolder; SOGoMailAccount *accountFolder; + id currentContainer; userFolder = [SOGoUserFolder objectWithName: [authenticator username] inContainer: MAPIApp]; @@ -75,6 +76,12 @@ moduleFolder = [accountFolder draftsFolderInContext: nil]; [moduleFolder retain]; + currentContainer = [moduleFolder container]; + while (currentContainer != accountFolder) + { + [parentFoldersBag addObject: currentContainer]; + currentContainer = [currentContainer container]; + } } - (id) createMessageInFolder: (id) parentFolder