  		    seqstr, _flag ? '+' : '-', flagstr];
    
    return [self->normer normalizeResponse:[self processCommand:cmd]];
-@@ -896,35 +960,23 @@
+@@ -896,35 +961,23 @@
    NSArray   *flags;
    NGHashMap *result;
    NSString  *message, *icmd;

   
   pool = [[NSAutoreleasePool alloc] init];
   
@@ -547,7 +567,11 @@
     if (!(_pattern = [self _folder2ImapFolder:_pattern]))
       return nil;
   
-  s = [NSString stringWithFormat:@"list \"%@\" \"%@\"", _folder, _pattern];
+  if ([_folder length] > 0)
+    prefix = [NSString stringWithFormat: @"%@%@", SaneFolderName(_folder), self->delimiter];
+  else
+    prefix = @"";
+  s = [NSString stringWithFormat:@"list \"%@\" \"%@\"", prefix, _pattern];
   map = [self processCommand:s];
   
   if (self->delimiter == nil) {
@@ -563,18 +587,49 @@
 }
 
 - (NSDictionary *)capability {

   return [self->normer normalizeResponse:[self processCommand:cmd]];
 }
 
@@ -1166,7 +1240,7 @@
     return nil;
   
   cmd = [NSString stringWithFormat:@"deleteacl \"%@\" \"%@\"",
