Commit c03cad3a authored by Jiri Hruska's avatar Jiri Hruska Committed by Steve Holme
Browse files

imap: Enabled custom requests in imap_select_resp()

Changed imap_select_resp() to invoke imap_custom() instead of
imap_fetch() after the mailbox has been selected if a custom
command has been set.
parent ad8b76d0
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1294,6 +1294,9 @@ static CURLcode imap_state_select_resp(struct connectdata *conn, int imapcode,
      /* Note the currently opened mailbox on this connection */
      imapc->mailbox = strdup(imap->mailbox);

      if(imap->custom)
        result = imap_custom(conn);
      else
        result = imap_fetch(conn);
    }
  }