mirror of
https://github.com/curl/curl.git
synced 2026-07-24 21:07:28 +03:00
imap: Fixed SELECT not being performed for custom requests
This commit is contained in:
parent
cc890906b1
commit
170ae51c47
1 changed files with 1 additions and 1 deletions
|
|
@ -1873,7 +1873,7 @@ static CURLcode imap_perform(struct connectdata *conn, bool *connected,
|
|||
else if(!imap->custom && selected && imap->uid)
|
||||
/* FETCH from the same mailbox */
|
||||
result = imap_fetch(conn);
|
||||
else if(imap->uid)
|
||||
else if(imap->mailbox && !selected && (imap->custom || imap->uid))
|
||||
/* SELECT the mailbox */
|
||||
result = imap_select(conn);
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue