return result;
}
+/***********************************************************************
+ *
+ * imap_logout()
+ *
+ * Performs the logout action prior to sclose() being called.
+ */
+static CURLcode imap_logout(struct connectdata *conn)
+{
+ CURLcode result = CURLE_OK;
+
+ /* Send the LOGOUT command */
+ result = imap_sendf(conn, "LOGOUT");
+
+ if(!result)
+ state(conn, IMAP_LOGOUT);
+
+ return result;
+}
+
/* For the initial server greeting */
static CURLcode imap_state_servergreet_resp(struct connectdata *conn,
int imapcode,
return result;
}
-/***********************************************************************
- *
- * imap_logout()
- *
- * Performs the logout action prior to sclose() being called.
- */
-static CURLcode imap_logout(struct connectdata *conn)
-{
- CURLcode result = CURLE_OK;
-
- /* Send the LOGOUT command */
- result = imap_sendf(conn, "LOGOUT");
-
- if(!result)
- state(conn, IMAP_LOGOUT);
-
- return result;
-}
-
/***********************************************************************
*
* imap_disconnect()