From: Steve Holme Date: Thu, 7 Mar 2013 22:56:19 +0000 (+0000) Subject: imap: Fixed SELECT not being performed for custom requests X-Git-Tag: curl-7_30_0~170 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=170ae51c474928f29eab98e5f10aef7fe8c7f32a;p=thirdparty%2Fcurl.git imap: Fixed SELECT not being performed for custom requests --- diff --git a/lib/imap.c b/lib/imap.c index 48b4309cbf..2ca87b8a0d 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