diff options
author | Jiri Hruska <jirka@fud.cz> | 2013-03-03 11:27:18 +0100 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2013-03-03 13:10:34 +0000 |
commit | c03cad3a61a005c6e91779139484db4dd2ce98d4 (patch) | |
tree | 8793c6c469f572032b24091a59cf27dc8fe1b593 | |
parent | ad8b76d094b4c68cb78a78ad126e60d631f05960 (diff) |
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.
-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 { |