aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2013-03-07 22:56:19 +0000
committerSteve Holme <steve_holme@hotmail.com>2013-03-07 22:56:19 +0000
commit170ae51c474928f29eab98e5f10aef7fe8c7f32a (patch)
tree627bf69a1a6e43b6b77010efbdc06d20f40d4d7d
parentcc890906b152dfb96acc8e9f571124dbdf8d8416 (diff)
imap: Fixed SELECT not being performed for custom requests
-rw-r--r--lib/imap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/imap.c b/lib/imap.c
index 48b4309cb..2ca87b8a0 100644
--- a/lib/imap.c
+++ b/lib/imap.c
@@ -1873,7 +1873,7 @@ static CURLcode imap_perform(struct connectdata *conn, bool *connected,
else if(!imap->custom && selected && imap->uid)
/* FETCH from the same mailbox */
result = imap_fetch(conn);
- else if(imap->uid)
+ else if(imap->mailbox && !selected && (imap->custom || imap->uid))
/* SELECT the mailbox */
result = imap_select(conn);
else