1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

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.
This commit is contained in:
Jiri Hruska 2013-03-03 11:27:18 +01:00 committed by Steve Holme
parent ad8b76d094
commit c03cad3a61

View File

@ -1294,7 +1294,10 @@ static CURLcode imap_state_select_resp(struct connectdata *conn, int imapcode,
/* Note the currently opened mailbox on this connection */
imapc->mailbox = strdup(imap->mailbox);
result = imap_fetch(conn);
if(imap->custom)
result = imap_custom(conn);
else
result = imap_fetch(conn);
}
}
else {