diff options
-rw-r--r-- | NEWS | 1 | ||||
-rw-r--r-- | imap.c | 7 |
2 files changed, 4 insertions, 4 deletions
@@ -6,6 +6,7 @@ * Fix for NO response during SIZE fetches for M$ Exchange IMAP server. * Thomas Zajic <zlatko@gmx.at> sent a change that copes with GMX X-UIDLs. * Fix fetchmailconf's handling of ssl attributes when SSL is not configured. +* Handle IMAP folder names with embedded spaces. fetchmail-5.2.7 (Sun Feb 6 20:45:41 EST 2000), 18517 lines: * Updated FAQ. @@ -1065,10 +1065,9 @@ static int imap_getrange(int sock, } else { - if (!check_only) - ok = gen_transact(sock, "SELECT %s", folder ? folder : "INBOX"); - else - ok = gen_transact(sock, "EXAMINE %s", folder ? folder : "INBOX"); + ok = gen_transact(sock, + check_only ? "EXAMINE \"%s\"" : "SELECT \"%s\"", + folder ? folder : "INBOX"); if (ok != 0) { report(stderr, _("mailbox selection failed\n")); |