diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2000-02-14 21:30:42 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2000-02-14 21:30:42 +0000 |
commit | 965b57fcd9e65fcdca1abda219b9d706dad229d1 (patch) | |
tree | 55783680aae6bf9f937b2bc8d35ee389c06dcf67 /imap.c | |
parent | acd98e75d3e5ab82f6e014bb52cb2509f7dfb933 (diff) | |
download | fetchmail-965b57fcd9e65fcdca1abda219b9d706dad229d1.tar.gz fetchmail-965b57fcd9e65fcdca1abda219b9d706dad229d1.tar.bz2 fetchmail-965b57fcd9e65fcdca1abda219b9d706dad229d1.zip |
Handle IMAP folder names with embedded spaces.
svn path=/trunk/; revision=2746
Diffstat (limited to 'imap.c')
-rw-r--r-- | imap.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -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")); |