diff options
-rw-r--r-- | lib/imap.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/imap.c b/lib/imap.c index b9a4b9cfe..ca2e43ec6 100644 --- a/lib/imap.c +++ b/lib/imap.c @@ -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 { |