+2007-08-29 Wolfgang Sourdeau <WSourdeau@Inverse.CA>
+
+ * NGImap4: added support for non-system IMAP4 flags (OGo bug #1899)
+ (v4.7.254)
+
2007-08-29 Helge Hess <helge.hess@opengroupware.org>
* NGMime: some gstep-base hackaround (OGo bug #1890) (v4.7.253)
+2007-08-29 Wolfgang Sourdeau <WSourdeau@Inverse.CA>
+
+ * NGImap4Client.m: added support for non-system IMAP4 flags (eg
+ $Forwarded) (fixes OGo bug #1899)
+
2007-08-14 Helge Hess <helge.hess@opengroupware.org>
* NGImap4Connection.m: fixed some issue with gnustep-base and the
/*
- Copyright (C) 2000-2005 SKYRIX Software AG
+ Copyright (C) 2000-2007 SKYRIX Software AG
This file is part of SOPE.
static int PreventExceptions = -1;
static BOOL fetchDebug = NO;
static BOOL ImapDebugEnabled = NO;
+static NSArray *Imap4SystemFlags = nil;
- (BOOL)useSSL {
return self->useSSL;
}
if (ImapClients == NULL)
ImapClients = calloc(MaxImapClients + 2, sizeof(id));
+
+ Imap4SystemFlags = [[NSArray alloc] initWithObjects: @"seen", @"answered",
+ @"deleted", @"draft", nil];
}
/* constructors */
cnt = 0;
enumerator = [_flags objectEnumerator];
while ((obj = [enumerator nextObject])) {
- objs[cnt] = [@"\\" stringByAppendingString:obj];
+ if ([Imap4SystemFlags containsObject: [obj lowercaseString]])
+ objs[cnt] = [@"\\" stringByAppendingString:obj];
+ else
+ objs[cnt] = obj;
cnt++;
}
result = [NSArray arrayWithObjects:objs count:cnt];