You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This plugin will enable a Cordova application to use the IMAP (Internet Message Access Protocol) features.
The plugin offers support for Android and iOS.
To enable the IMAP features on Android, this plugin uses the framework Java Mail API
and for iOS, it uses the MailCore 2 library.
Supported Platforms
Android
iOS
Installation
Install the plugin by running:
cordova plugin add cordova-plugin-imap
API
connect(config, success, error) - (Connection) - Tries to connect and authenticate with the IMAP server.
disconnect(success, error) - (boolean) - Closes the connection with the server.
isConnected(success, error) - (boolean) - Checks the current state of the connection.
listMailFolders(pattern, success, error) - (string[]) - Lists the name of all the mail folders in the mailbox.
getMessageCountByFolderName(folderName, success, error) - (number) - Gets the count of the messages in the folder.
getFullMessageData(folderName, messageNumber, success, error) - (Message) - Returns the full message data inclucing its attachments.
getFullMessageDataOnNewSession(config, folderName, messageNumber, success, error) - (Message) - Returns the full message data inclucing its attachments.
copyToFolder (sourceFolder, destinationFolder, messageNums, success, error) - (boolean) - Copy messages to a desired folder
setFlag (folderName, messageNums, flag : enum, status, success, error) - (ModificationResult) - Sets a flag on a message.
This method can also be used for deleting messages.
Data types
Config
Param
Type
Description
host
string
Hostname or IP address of the IMAP service.
port
number
Optional. Port of the IMAP server to connect. Default set to: 993