From 170ae51c474928f29eab98e5f10aef7fe8c7f32a Mon Sep 17 00:00:00 2001 From: Steve Holme Date: Thu, 7 Mar 2013 22:56:19 +0000 Subject: imap: Fixed SELECT not being performed for custom requests --- lib/imap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/imap.c') 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 -- cgit v1.2.3