diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1997-10-27 13:27:34 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1997-10-27 13:27:34 +0000 |
commit | c2c96e332ee43b86cf3393a195af822f2f77bf05 (patch) | |
tree | 38569c1159e6fccaaa6618067c0e76d995140e55 /imap.c | |
parent | 75e4877cbd430ea55299d6b2ef676a6a377d1e86 (diff) | |
download | fetchmail-c2c96e332ee43b86cf3393a195af822f2f77bf05.tar.gz fetchmail-c2c96e332ee43b86cf3393a195af822f2f77bf05.tar.bz2 fetchmail-c2c96e332ee43b86cf3393a195af822f2f77bf05.zip |
Use EXAMINE where appropriate.
svn path=/trunk/; revision=1529
Diffstat (limited to 'imap.c')
-rw-r--r-- | imap.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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"); |