From c2c96e332ee43b86cf3393a195af822f2f77bf05 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Mon, 27 Oct 1997 13:27:34 +0000 Subject: Use EXAMINE where appropriate. svn path=/trunk/; revision=1529 --- imap.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'imap.c') diff --git a/imap.c b/imap.c index 043fe5e3..873aaffc 100644 --- a/imap.c +++ b/imap.c @@ -433,7 +433,10 @@ static int imap_getrange(int sock, } else { - ok = gen_transact(sock, "SELECT %s", folder ? folder : "INBOX"); + if (!check_only) + ok = gen_transact(sock, "SELECT %s", folder ? folder : "INBOX"); + else + ok = gen_transact(sock, "EXAMINE %s", folder ? folder : "INBOX"); if (ok != 0) { error(0, 0, "mailbox selection failed"); -- cgit v1.2.3