+2004-12-03 Helge Hess <helge.hess@skyrix.com>
+
+ * NGImap4: fixed an error handler in the Sieve client (v4.5.203)
+
2004-11-30 Helge Hess <helge.hess@skyrix.com>
* NGMail: fixed a bug in NGSendMail (v4.5.202)
+2004-12-03 Helge Hess <helge.hess@skyrix.com>
+
+ * NGSieveClient.m: fixed error processing on missing scripts
+
2004-11-28 Helge Hess <helge.hess@skyrix.com>
* NGSieveClient.m: can init using a URL, prepared some parsing methods,
if ((script = [[self readString] autorelease]) == nil)
return nil;
+ if ([script hasPrefix:@"O "] || [script hasPrefix:@"NO "]) {
+ // TODO: not exactly correct, script could begin with this signature
+ // Note: readString read 'NO ...', but the first char is consumed
+
+ [self logWithFormat:@"ERROR: status line reports: '%@'", script];
+ return nil;
+ }
+
+ NSLog(@"str: %@", script);
+
/* read response code */
if ((s = [self readStringToCRLF]) == nil) {
return [self readQuoted];
if (c1 == '{')
return [self readLiteral];
-
+
+ // Note: this does not return the first char!
return [self readStringToCRLF];
}