Creates a new ButterflyClient connected to the butterfly server specified by the Address endpoint.
Authenticate to the server with the given username and password.
Creates a new folder under the path specified by folderPath.
Deletes an existing folder under the path specified by folderPath.
Fetches the message block (mail message JSON) of the mail message specified by mailID located in the folder specified by folderPath. Returns it as a JSONValue.
Returns a string[] of the folder names in the given folder, folderPath
Returns a string[] of the mail IDs within the given folder, folderPath.
Registers a new account with the given username and password.
Send the provided JSONValue mail messageBlock