    if (![[result valueForKey:@"result"] boolValue]) {
      return [self errorForResult:result 
  		 text:@"Failed to change flags of IMAP4 message"];
+@@ -911,4 +911,16 @@
+   return ms;
+ }
+ 
++- (id) retain
++{
++  NSLog (@"connection (%Lx) retained: %d", self, [self retainCount] + 1);
++  return [super retain];
++}
++
++- (void) release
++{
++  NSLog (@"connection (%Lx) released: %d", self, [self retainCount] - 1);
++  [super release];
++}
++
+ @end /* NGImap4Connection */
 Index: sope-mime/NGImap4/NGImap4ResponseNormalizer.m
 ===================================================================
 --- sope-mime/NGImap4/NGImap4ResponseNormalizer.m	(révision 1626)

   if ([_sortSpec isKindOfClass:[NSArray class]])
     tmp = [self _generateIMAP4SortOrderings:_sortSpec];
   else if ([_sortSpec isKindOfClass:[EOSortOrdering class]])
@@ -1107,9 +1128,10 @@
     tmp = @"DATE";
   }
   

 		    seqstr, _flag ? '+' : '-', flagstr];
   
   return [self->normer normalizeResponse:[self processCommand:cmd]];
@@ -967,11 +985,12 @@
   descr = @"Could not process qualifier for imap search "; 
   descr = [descr stringByAppendingString:reason];           
   
