flutter_email_parser 0.1.2

  • Readme
  • Changelog
  • Example
  • Installing
  • 66

flutter_email_reply_parser #

Email reply parser is a package to parse plain text email content.

Usage #

Example

   dependencies:
     flutter:
       sdk: flutter
     flutter_email_parser:

How to use #

import 'package:flutter/material.dart';
import 'package:flutteremailreplyparser/email_reply_parser.dart';

class Example extends StatefulWidget {
  @override
  _ExampleState createState() => _ExampleState();
}

class _ExampleState extends State<Example> {
  @override
  Widget build(BuildContext context) {
    return Center(
      child: Text(_getTheEmailContent()),
    );
  }

// This will return the parsed string.
  String _getTheEmailContent() {
    const email_1 = """
Hi folks

What is the best way to clear a Riak bucket of all key, values after
running a test?
I am currently using the Java HTTP API.

-Krishna Soni


_______________________________________________
test-users mailing list
test-users@gmail.com
https://github.com/krishnaSoni2113/flutter-email-reply-parser
""";

   // Here we are parsing the email data.
    EmailReplyParser _emailReplyParser = EmailReplyParser();
    return _emailReplyParser.parseReply(emailText: email_1);
  }
}

[0.0.1] - Release #

  • Email reply parser is a package written in dart to parse plain text email content.

[0.0.2] - Release #

  • Email reply parser is a package written in dart to parse plain text email content.
  • Added the the possible example and unit test cases for the same.

[0.0.3] - Release #

  • Email reply parser is a package written in dart to parse plain text email content.

[0.1.0] - Release #

  • Fixed maintenance stuffs.

[0.1.1] - Release #

  • Updated the Email parser quoteRegExp and sigRegExp.

[0.1.2] - Release #

  • Added unit test cases for various email format.

example/example.dart

import 'package:flutter/material.dart';
import 'package:flutter_email_parser/email_reply_parser.dart';

class Example extends StatefulWidget {
  @override
  _ExampleState createState() => _ExampleState();
}

class _ExampleState extends State<Example> {
  @override
  Widget build(BuildContext context) {
    return Center(
      child: Text(_getTheEmailContent()),
    );
  }

  String _getTheEmailContent() {
    const email_1 = """
Hi folks

What is the best way to clear a Riak bucket of all key, values after
running a test?
I am currently using the Java HTTP API.

-Krishna Soni


_______________________________________________
test-users mailing list
test-users@gmail.com
https://github.com/krishnaSoni2113/flutter-email-reply-parser
""";

    EmailReplyParser _emailReplyParser = EmailReplyParser();
    return _emailReplyParser.parseReply(emailText: email_1);
  }
}

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  flutter_email_parser: ^0.1.2

2. Install it

You can install packages from the command line:

with Flutter:


$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:flutter_email_parser/email_parser.dart';
import 'package:flutter_email_parser/email_processed.dart';
import 'package:flutter_email_parser/email_reply_parser.dart';
import 'package:flutter_email_parser/flutteremailreplyparser.dart';
import 'package:flutter_email_parser/fragment.dart';
import 'package:flutter_email_parser/fragment_dto.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
32
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100
Overall:
Weighted score of the above. [more]
66
Learn more about scoring.

We analyzed this package on Jul 2, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.8.4
  • pana: 0.13.13
  • Flutter: 1.17.5

Analysis suggestions

Package not compatible with SDK dart

because of import path [flutter_email_parser] that is in a package requiring null.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.7.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.12 1.14.13
meta 1.1.8
sky_engine 0.0.99
typed_data 1.1.6 1.2.0
vector_math 2.0.8
Dev dependencies
flutter_test