- (id)lookupImap4BodyPartKey:(NSString *)_key inContext:(id)_ctx {
// TODO: we might want to check for existence prior controller creation
+ // TODO: we might(should?) want to create type-specific body-part objects
return [[[SOGoMailBodyPart alloc] initWithName:_key
inContainer:self] autorelease];
}
+2005-01-30 Helge Hess <helge.hess@opengroupware.org>
+
+ * some work on script upload (v0.9.5)
+
2004-12-03 Helge Hess <helge.hess@skyrix.com>
* SOGoSieveScriptObject.m, SOGoSieveScriptsFolder.m: added script
/*
- Copyright (C) 2004 SKYRIX Software AG
+ Copyright (C) 2004-2005 SKYRIX Software AG
This file is part of OpenGroupware.org.
/*
- Copyright (C) 2004 SKYRIX Software AG
+ Copyright (C) 2004-2005 SKYRIX Software AG
This file is part of OpenGroupware.org.
/*
- Copyright (C) 2004 SKYRIX Software AG
+ Copyright (C) 2004-2005 SKYRIX Software AG
This file is part of OpenGroupware.org.
The SOGoSieveScriptObject represents a single sieve script on a Cyrus folder.
*/
+@class NSData, NSString, NSException;
+
@interface SOGoSieveScriptObject : SOGoSieveBaseObject
{
}
+/* content */
+
+- (NSString *)contentAsString;
+- (NSData *)content;
+- (NSException *)writeContent:(id)_content;
+
@end
#endif /* __Sieve_SOGoSieveScriptObject_H__ */
/*
- Copyright (C) 2004 SKYRIX Software AG
+ Copyright (C) 2004-2005 SKYRIX Software AG
This file is part of OpenGroupware.org.
return [[self contentAsString] dataUsingEncoding:NSUTF8StringEncoding];
}
+- (NSException *)writeContent:(id)_content {
+ if (_content == nil) {
+ return [NSException exceptionWithHTTPStatus:400 /* Bad Request */
+ reason:@"Missing content to write!"];
+ }
+
+ return [NSException exceptionWithHTTPStatus:501 /* Not Implemented */
+ reason:@"Does not implement script upload yet!"];
+}
+
/* operations */
- (NSException *)delete {
return [NSException exceptionWithHTTPStatus:404 /* Not Found */];
}
+/* operations */
+
+- (id)PUTAction:(id)_context {
+ NSException *e;
+ NSData *content;
+
+ content = [[_context request] content];
+
+ if ((e = [self writeContent:content]))
+ return e;
+
+ return self;
+}
+
/* WebDAV */
@end /* SOGoSieveScriptObject */
# Version file
-SUBMINOR_VERSION:=4
+SUBMINOR_VERSION:=5
# v0.9.1 requires libNGMime v4.3.194