+/**
+ * modest_account_mgr_get_server_account_username_has_succeeded:
+ * @self: a ModestAccountMgr instance
+ * @account_name: The name of a server account.
+ *
+ * Whether a connection has ever been successfully made to this account with
+ * the current username. This can be used to avoid asking again for the username
+ * when asking a second time for a non-stored password.
+ *
+ * Returns: TRUE if the username is known to be correct.
+ */
+gboolean modest_account_mgr_get_server_account_username_has_succeeded (ModestAccountMgr *self,
+ const gchar* account_name);
+
+/**
+ * modest_account_mgr_set_server_account_username_has_succeeded:
+ * @self: a ModestAccountMgr instance
+ * @account_name: The name of a server account.
+ * @succeeded: Whether the username has succeeded
+ *
+ * Sets whether the username is known to be correct.
+ */
+void modest_account_mgr_set_server_account_username_has_succeeded (ModestAccountMgr *self,
+ const gchar* account_name,
+ gboolean succeeded);
+
+/**
+ * modest_account_mgr_set_server_account_password:
+ * @self: a ModestAccountMgr instance
+ * @account_name: The name of a server account.
+ * @password: The new password.
+ *
+ * Sets the password for this server account.
+ */
+void modest_account_mgr_set_server_account_password (ModestAccountMgr *self,
+ const gchar* account_name,
+ const gchar* password);
+
+/**
+ * modest_account_mgr_get_server_account_password:
+ * @self: a ModestAccountMgr instance
+ * @account_name: The name of a server account.
+ *
+ * Gets the password for this server account from the account settings.
+ */
+gchar* modest_account_mgr_get_server_account_password (ModestAccountMgr *self,
+ const gchar* account_name);
+
+/**
+ * modest_account_mgr_get_server_account_has_password:
+ * @self: a ModestAccountMgr instance
+ * @account_name: The name of a server account.
+ *
+ * Gets whether a password has been set for this server account in the account settings.
+ */
+gboolean modest_account_mgr_get_server_account_has_password (ModestAccountMgr *self,
+ const gchar* account_name);
+
+/**
+ * modest_server_account_modest_account_mgr_get_server_account_hostname:
+ * @self: a ModestAccountMgr instance
+ * @account_name: The name of a server account.
+ *
+ * Gets the hostname this server account.
+ *
+ * Returns: The hostname.
+ */
+gchar* modest_account_mgr_get_server_account_hostname (ModestAccountMgr *self,
+ const gchar* account_name);
+
+/**
+ * modest_server_account_modest_account_mgr_set_server_account_hostname:
+ * @self: a ModestAccountMgr instance
+ * @account_name: The name of a server account.
+ * @hostname: The new hostname
+ *
+ * Sets the hostname this server account.
+ */
+void modest_account_mgr_set_server_account_hostname (ModestAccountMgr *self,
+ const gchar* account_name,
+ const gchar *hostname);
+
+/**
+ * modest_account_mgr_get_server_account_secure_auth:
+ * @self: a ModestAccountMgr instance
+ * @account_name: The name of a server account.
+ *
+ * Gets the secure authentication method for this server account.
+ *
+ * Returns: The secure authentication enum value.
+ */
+ModestAuthProtocol modest_account_mgr_get_server_account_secure_auth (ModestAccountMgr *self,
+ const gchar* account_name);
+
+/**
+ * modest_server_account_data_get_secure_auth:
+ * @self: a ModestAccountMgr instance
+ * @account_name: The name of a server account.
+ * @secure_auth: The secure authentication enum value.
+ *
+ * Gets the secure authentication method for this server account.
+ */
+void modest_account_mgr_set_server_account_secure_auth (ModestAccountMgr *self,
+ const gchar* account_name,
+ ModestAuthProtocol secure_auth);
+
+/**
+ * modest_server_account_data_get_security:
+ * @self: a ModestAccountMgr instance
+ * @account_name: The name of a server account.
+ *
+ * Gets the security method for this server account.
+ *
+ * Returns: The security enum value.
+ */
+ModestConnectionProtocol modest_account_mgr_get_server_account_security (ModestAccountMgr *self,
+ const gchar* account_name);
+
+/**
+ * modest_account_mgr_set_server_account_security:
+ * @self: a ModestAccountMgr instance
+ * @secure_auth: The security enum value.
+ *
+ * Gets the security method for this server account.
+ */
+void modest_account_mgr_set_server_account_security (ModestAccountMgr *self,
+ const gchar* account_name,
+ ModestConnectionProtocol security);
+
+ModestServerAccountData* modest_account_mgr_get_server_account_data (ModestAccountMgr *self,
+ const gchar* name);
+
+void modest_account_mgr_free_server_account_data (ModestAccountMgr *self,
+ ModestServerAccountData* data);