| 848 | } |
| 849 | |
| 850 | static void imap_close_server(struct imap_store *ictx) |
| 851 | { |
| 852 | struct imap *imap = ictx->imap; |
| 853 | |
| 854 | if (imap->buf.sock.fd[0] != -1) { |
| 855 | imap_exec(ictx, NULL, "LOGOUT"); |
| 856 | socket_shutdown(&imap->buf.sock); |
| 857 | } |
| 858 | free(imap); |
| 859 | } |
| 860 | |
| 861 | static void imap_close_store(struct imap_store *ctx) |
| 862 | { |
no test coverage detected