+2005-07-07 Helge Hess <helge.hess@opengroupware.org>
+
+ * v0.9.90
+
+ * added specific SOGoTrashFolder.m class (subclass of SOGoMailFolder)
+ to allow hooking up a different UI
+
2005-07-07 Helge Hess <helge.hess@opengroupware.org>
* SOGoMailAccounts.m: expose shared mailboxes retrieved via
SOGoMailFolder.m \
SOGoMailObject.m \
SOGoMailFolderDataSource.m \
+ SOGoTrashFolder.m \
\
SOGoMailBodyPart.m \
SOGoImageMailBodyPart.m \
}
- (id)lookupImap4Folder:(NSString *)_key inContext:(id)_cx {
- return [self lookupFolder:_key ofClassNamed:@"SOGoMailFolder" inContext:_cx];
+ NSString *s;
+
+ s = [_key isEqualToString:[self trashFolderNameInContext:_cx]]
+ ? @"SOGoTrashFolder" : @"SOGoMailFolder";
+
+ return [self lookupFolder:_key ofClassNamed:s inContext:_cx];
}
+
- (id)lookupDraftsFolder:(NSString *)_key inContext:(id)_ctx {
return [self lookupFolder:_key ofClassNamed:@"SOGoDraftsFolder"
inContext:_ctx];
--- /dev/null
+/*
+ Copyright (C) 2005 SKYRIX Software AG
+
+ This file is part of OpenGroupware.org.
+
+ OGo is free software; you can redistribute it and/or modify it under
+ the terms of the GNU Lesser General Public License as published by the
+ Free Software Foundation; either version 2, or (at your option) any
+ later version.
+
+ OGo is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
+ License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with OGo; see the file COPYING. If not, write to the
+ Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
+ 02111-1307, USA.
+*/
+
+#ifndef __Mailer_SOGoTrashFolder_H__
+#define __Mailer_SOGoTrashFolder_H__
+
+#include <SoObjects/Mailer/SOGoMailFolder.h>
+
+@interface SOGoTrashFolder : SOGoMailFolder
+@end
+
+#endif /* __Mailer_SOGoTrashFolder_H__ */
--- /dev/null
+/*
+ Copyright (C) 2005 SKYRIX Software AG
+
+ This file is part of OpenGroupware.org.
+
+ OGo is free software; you can redistribute it and/or modify it under
+ the terms of the GNU Lesser General Public License as published by the
+ Free Software Foundation; either version 2, or (at your option) any
+ later version.
+
+ OGo is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
+ License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with OGo; see the file COPYING. If not, write to the
+ Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
+ 02111-1307, USA.
+*/
+
+#include "SOGoTrashFolder.h"
+#include "common.h"
+
+@implementation SOGoTrashFolder
+
+/* folder type */
+
+- (NSString *)outlookFolderClass {
+ return @"IPF.Trash";
+}
+
+@end /* SOGoTrashFolder */
# Version file
-SUBMINOR_VERSION:=89
+SUBMINOR_VERSION:=90
# v0.9.69 requires libNGMime v4.5.210
# v0.9.55 requires libNGExtensions v4.5.136
};
};
+ SOGoTrashFolder = {
+ superclass = "SOGoMailFolder";
+ };
+
SOGoMailObject = {
superclass = "SOGoMailBaseObject";
};