+2004-09-08 Helge Hess <helge.hess@skyrix.com>
+
+ * added missing account objects (v0.9.2)
+
2004-08-26 Marcus Mueller <znek@mulle-kybernetik.com>
* ChangeLog: created
Mailer_PRINCIPAL_CLASS = SOGoMailerProduct
-Mailer_OBJC_FILES = \
- Product.m \
- \
- SOGoMailObject.m \
- SOGoMailFolder.m \
+Mailer_OBJC_FILES += \
+ Product.m \
+ \
+ SOGoMailAccounts.m \
+ SOGoMailAccount.m \
+ SOGoMailFolder.m \
+ SOGoMailObject.m \
-Mailer_RESOURCE_FILES += \
- Version \
- product.plist \
+Mailer_RESOURCE_FILES += \
+ Version \
+ product.plist \
-include GNUmakefile.preamble
include $(GNUSTEP_MAKEFILES)/bundle.make
--- /dev/null
+/*
+ Copyright (C) 2004 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.
+*/
+// $Id: SOGoMailAccount.h 274 2004-08-26 13:10:49Z znek $
+
+#ifndef __Mailer_SOGoMailAccount_H__
+#define __Mailer_SOGoMailAccount_H__
+
+#include <SOGo/SOGoObject.h>
+
+/*
+ SOGoMailAccount
+ Parent object: SOGoMailAccounts
+ Child objects: SOGoMailFolder
+
+ The SOGoMailAccount represents a single IMAP4 mail account (host, login,
+ password, etc)
+*/
+
+@class NSString, NSArray, NSCalendarDate, NSException;
+
+@interface SOGoMailAccount : SOGoObject
+{
+}
+
+@end
+
+#endif /* __Mailer_SOGoMailAccount_H__ */
--- /dev/null
+/*
+ Copyright (C) 2004 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.
+*/
+// $Id: SOGoMailAccount.m 274 2004-08-26 13:10:49Z znek $
+
+#include "SOGoMailAccount.h"
+#include "common.h"
+
+@implementation SOGoMailAccount
+
+@end /* SOGoMailAccount */
--- /dev/null
+/*
+ Copyright (C) 2004 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.
+*/
+// $Id: SOGoMailAccounts.h 274 2004-08-26 13:10:49Z znek $
+
+#ifndef __Mailer_SOGoMailAccounts_H__
+#define __Mailer_SOGoMailAccounts_H__
+
+#include <SOGo/SOGoObject.h>
+
+/*
+ SOGoMailAccounts
+ Parent object: SOGoUserFolder
+ Child objects: SOGoMailAccount
+
+ The SOGoMailAccounts folder contains the mail accounts which are associated
+ with a user.
+*/
+
+@class NSString, NSArray, NSCalendarDate, NSException;
+
+@interface SOGoMailAccounts : SOGoObject
+{
+}
+
+@end
+
+#endif /* __Mailer_SOGoMailAccounts_H__ */
--- /dev/null
+/*
+ Copyright (C) 2004 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.
+*/
+// $Id: SOGoMailAccounts.m 274 2004-08-26 13:10:49Z znek $
+
+#include "SOGoMailAccounts.h"
+#include "common.h"
+
+@implementation SOGoMailAccounts
+
+@end /* SOGoMailAccounts */
#ifndef __Mailer_SOGoMailFolder_H__
#define __Mailer_SOGoMailFolder_H__
-#include <SOGo/SOGoFolder.h>
+#include <SOGo/SOGoObject.h>
/*
SOGoMailFolder
- Parent object: the SOGoUserFolder
- Child objects: SOGoMailObject
+ Parent object: the SOGoMailAccount
+ Child objects: SOGoMailObject or SOGoMailFolder
- The SOGoMailFolder maps to an OCS folder of type 'mail', that
- is, a content folder containing ??? files (and a proper quicktable).
+ The SOGoMailFolder maps to an IMAP4 folder from NGImap4.
*/
@class NSString, NSArray, NSCalendarDate, NSException;
-@class OCSFolder;
-@interface SOGoMailFolder : SOGoFolder
+@interface SOGoMailFolder : SOGoObject
{
}
@implementation SOGoMailFolder
-/* GET */
-
-- (id)GETAction:(WOContext *)_ctx {
- // TODO: I guess this should really be done by SOPE (redirect to
- // default method)
- NSString *uri;
-
- uri = [[_ctx request] uri];
- if (![uri hasSuffix:@"/"]) uri = [uri stringByAppendingString:@"/"];
- uri = [uri stringByAppendingString:@"view"];
-
- return [self redirectToLocation:uri];
-}
-
@end /* SOGoMailFolder */
/*
SOGoMailObject
+ Parent object: the SOGoMailFolder
+ Child objects: none (maybe SOGoMailAttachments?)
- Represents a single mail.
+ Represents a single mail as retrieved using NGImap4.
*/
@class NSString, NSArray, NSException;
-@interface SOGoMailObject : SOGoContentObject
+@interface SOGoMailObject : SOGoObject
{
}
# $Id$
-SUBMINOR_VERSION:=0
+SUBMINOR_VERSION:=2
};
classes = {
+ SOGoMailAccounts = {
+ superclass = "SOGoObject";
+ };
+
+ SOGoMailAccount = {
+ superclass = "SOGoObject";
+ };
+
SOGoMailFolder = {
- superclass = "SOGoFolder";
+ superclass = "SOGoObject";
};
+
SOGoMailObject = {
- superclass = "SOGoContentObject";
+ superclass = "SOGoObject";
};
};
}
+2004-09-08 Helge Hess <helge.hess@skyrix.com>
+
+ * SOGoUserFolder.m: map "Mail" key to SOGoMailAccounts object (v0.9.15)
+
2004-09-01 Marcus Mueller <znek@mulle-kybernetik.com>
* v0.9.14
return [folder autorelease];
}
+- (id)mailAccountsFolder:(NSString *)_key inContext:(id)_ctx {
+ static Class fldClass = Nil;
+ id folder;
+
+ if (fldClass == Nil)
+ fldClass = NSClassFromString(@"SOGoMailAccounts");
+ if (fldClass == Nil) {
+ [self logWithFormat:@"ERROR: missing SOGoMailAccounts class!"];
+ return nil;
+ }
+
+ folder = [[fldClass alloc] initWithName:_key inContainer:self];
+ return [folder autorelease];
+}
+
- (id)lookupName:(NSString *)_key inContext:(id)_ctx acquire:(BOOL)_flag {
id obj;
if ([_key isEqualToString:@"Groups"])
return [self groupsFolder:_key inContext:_ctx];
+
+ if ([_key isEqualToString:@"Mail"])
+ return [self mailAccountsFolder:_key inContext:_ctx];
/* return 404 to stop acquisition */
return [NSException exceptionWithHTTPStatus:404 /* Not Found */];
# $Id: Version 170 2004-08-11 10:45:40Z helge $
-SUBMINOR_VERSION:=14
+SUBMINOR_VERSION:=15