Commit 0bc515ae 0bc515ae1a97a594e0db12d0e14b72e4459d1c19 by Sergey Poznyakoff

(print_dir): Enclose empty filename in doublequotes.

1 parent d9bffb56
...@@ -315,9 +315,12 @@ print_dir (const char *ref, const char *file, const char *delim) ...@@ -315,9 +315,12 @@ print_dir (const char *ref, const char *file, const char *delim)
315 strlen (ref) + strlen ((*ref) ? delim : "") + strlen (file)); 315 strlen (ref) + strlen ((*ref) ? delim : "") + strlen (file));
316 util_send ("%s%s%s\r\n", ref, (*ref) ? delim : "", file); 316 util_send ("%s%s%s\r\n", ref, (*ref) ? delim : "", file);
317 } 317 }
318 else 318 else if (*file)
319 util_out (RESP_NONE, "LIST (\\NoSelect) \"%s\" %s%s%s", delim, 319 util_out (RESP_NONE, "LIST (\\NoSelect) \"%s\" %s%s%s", delim,
320 ref, (*ref) ? delim : "", file); 320 ref, (*ref) ? delim : "", file);
321 else
322 util_out (RESP_NONE, "LIST (\\NoSelect) \"%s\" \"%s%s\"", delim,
323 ref, (*ref) ? delim : "");
321 } 324 }
322 325
323 /* Calls the imap_matcher if a match found out the attribute. */ 326 /* Calls the imap_matcher if a match found out the attribute. */
......