wmbiff: Close mailbox before we call status on it.
Additional patch by Nye Liu <nyet@nyet.org> to fix Debian bug #830889 [1]. [1] https://bugs.debian.org/830889
This commit is contained in:
parent
1d84a1d8e4
commit
3149adc321
|
@ -321,6 +321,14 @@ int imap_checkmail( /*@notnull@ */ Pop3 pc)
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
command_id++;
|
||||||
|
tlscomm_printf(scs, "a%03d CLOSE\r\n", command_id);
|
||||||
|
snprintf(examine_expect, BUF_SIZE, "a%03d OK", command_id);
|
||||||
|
if (tlscomm_expect(scs, examine_expect, buf, 127) == 0) {
|
||||||
|
tlscomm_close(unbind(scs));
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
/* if we've got it by now, try the status query */
|
/* if we've got it by now, try the status query */
|
||||||
command_id++;
|
command_id++;
|
||||||
tlscomm_printf(scs, "a%03d STATUS %s (MESSAGES UNSEEN)\r\n",
|
tlscomm_printf(scs, "a%03d STATUS %s (MESSAGES UNSEEN)\r\n",
|
||||||
|
|
Loading…
Reference in a new issue