aboutsummaryrefslogtreecommitdiffstats
path: root/imap.c
diff options
context:
space:
mode:
Diffstat (limited to 'imap.c')
-rw-r--r--imap.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/imap.c b/imap.c
index 34c4bf96..9aee018d 100644
--- a/imap.c
+++ b/imap.c
@@ -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"));