logout.c 260 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 #include "logout.h" STATUS imap_logout(Command *command) { if( command->args ) return BAD; /* finish everything */ fprintf(output, "* BYE IMAP4rev1 terminating connection\r\n"); #ifdef STATISTICS statistics(); #endif state = LOGOUT; return OK; }