thu-info-mailcore
TypeScript icon, indicating that this package has built-in type declarations

0.2.1 • Public • Published

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 your app/build.gradle

For more information, see https://issuetracker.google.com/issues/172544275

Setup

Requires react-native >= 0.61

  • yarn add thu-info-mailcore
  • cd ios && pod install && cd .. (iOS only)

Usage

  • loginImap

  • loginSmtp

  • createFolder

  • renameFolder

  • deleteFolder

  • getFolders

  • moveEmail

  • permanentDeleteEmail

  • getMails

  • getMailsByRange

  • getMail

  • sendMail

  • statusFolder

  • getAttachment

  • getAttachmentInline

  • actionFlagMessage

  • actionLabelMessage

For most of the methods you must first use loginImap. For sendMail method you must first use loginSmtp. 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.

Package Sidebar

Install

npm i thu-info-mailcore

Weekly Downloads

3

Version

0.2.1

License

ISC

Unpacked Size

75.8 kB

Total Files

16

Last publish

Collaborators

  • unidy