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) ...@@ -29,7 +29,6 @@ imap4d_logout (struct imap4d_command *command, char *arg)
29 return util_finish (command, RESP_BAD, "Wrong state"); 29 return util_finish (command, RESP_BAD, "Wrong state");
30 if (util_getword (arg, &sp)) 30 if (util_getword (arg, &sp))
31 return util_finish (command, RESP_BAD, "Too many args"); 31 return util_finish (command, RESP_BAD, "Too many args");
32 util_finish (command, RESP_OK, "Completed"); 32 imap4d_bye0 (OK, command);
33 imap4d_bye (OK);
34 return 0; 33 return 0;
35 } 34 }
......