projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad8b76d
)
imap: Enabled custom requests in imap_select_resp()
author
Jiri Hruska
<jirka@fud.cz>
Sun, 3 Mar 2013 10:27:18 +0000
(11:27 +0100)
committer
Steve Holme
<steve_holme@hotmail.com>
Sun, 3 Mar 2013 13:10:34 +0000
(13:10 +0000)
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.
lib/imap.c
patch
|
blob
|
history
diff --git
a/lib/imap.c
b/lib/imap.c
index
b9a4b9c
..
ca2e43e
100644
(file)
--- 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 {