Skip to content

dickverweij/flutter_msg_parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This package is a port of msg reader (javascript) wich reads and parses email messages saved in (binary) MSG format. It also reads attachments from the saved message.

Features

It will parse the MSG file and return a data structure containing all the text, html and attachments.

Getting started

Include this library in your Android or IOS flutter App.

Usage

    
    Uint8List msg = await File('test/test.msg').readAsBytes();

    MsgParseResult result =  parseMsg(msg);
  
    print (result.subject);
    print (result.from);
    print (result.recipients);
    print (result.text);
    print (result.html);
    for (final attachment in result.attachments) {
        print(attachment.name);
        print(attachment.inline);
        print(attachment.contentType);
        print(attachment.data);
        print(attachment.data64);
    }

Additional information

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages