Commit 3fb7b236 3fb7b2361078f1b9d7d1f45ad8c570aca0f92afc by Sergey Poznyakoff

call imap4d_bye0() instead of imap4d_bye().

Reason: rfc 2060 requires that the server send a BYE untagged response
before the (tagged) OK response. With our implementation it was
vice-versa.
1 parent bbaf9dee
......@@ -29,7 +29,6 @@ imap4d_logout (struct imap4d_command *command, char *arg)
return util_finish (command, RESP_BAD, "Wrong state");
if (util_getword (arg, &sp))
return util_finish (command, RESP_BAD, "Too many args");
util_finish (command, RESP_OK, "Completed");
imap4d_bye (OK);
imap4d_bye0 (OK, command);
return 0;
}
......