Commit 170ae51c authored by Steve Holme's avatar Steve Holme
Browse files

imap: Fixed SELECT not being performed for custom requests

parent cc890906
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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