diff options
author | Steve Holme <steve_holme@hotmail.com> | 2013-03-07 22:56:19 +0000 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2013-03-07 22:56:19 +0000 |
commit | 170ae51c474928f29eab98e5f10aef7fe8c7f32a (patch) | |
tree | 627bf69a1a6e43b6b77010efbdc06d20f40d4d7d /lib | |
parent | cc890906b152dfb96acc8e9f571124dbdf8d8416 (diff) |
imap: Fixed SELECT not being performed for custom requests
Diffstat (limited to 'lib')
-rw-r--r-- | lib/imap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/imap.c b/lib/imap.c index 48b4309cb..2ca87b8a0 100644 --- a/lib/imap.c +++ b/lib/imap.c @@ -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 |