thu-info-mailcore v0.2.1
thu-info-mailcore
react native bindings for https://github.com/MailCore/mailcore2, based on react-native-mailcore, customized for thu-info
WARNING: For android projects targeting API 30 and above, exclude
'META-INF/NOTICE.md'and'META-INF/LICENSE.md'in yourapp/build.gradleFor more information, see https://issuetracker.google.com/issues/172544275
Setup
Requires react-native >= 0.61
yarn add thu-info-mailcorecd ios && pod install && cd ..(iOS only)
Usage
loginImaploginSmtpcreateFolderrenameFolderdeleteFoldergetFoldersmoveEmailpermanentDeleteEmailgetMailsgetMailsByRangegetMailsendMailstatusFoldergetAttachmentgetAttachmentInlineactionFlagMessageactionLabelMessage
For most of the methods you must first use
loginImap. ForsendMailmethod you must first useloginSmtp. For the use of attachments download remember to give permission to the application.
import MailCore from "thu-info-mailcore";See index.d.ts for full definition of these API functions.