New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

talon

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

talon

Extract signatures from mail messages

latest
Source
npmnpm
Version
2.3.2
Version published
Maintainers
1
Created
Source

Build Status Dependency Status devDependency Status

node-talon

Port of mailgun/talon (signature detection in mails) from Python to JavaScript.

This can be used to extract and strip signature from mail messages, allowing safer automatic parsing for example.

Installation

npm install --save talon

Usage

var talon = require("talon");
var extractSignature = talon.signature.bruteforce.extractSignature;

var message = "Wow. Awesome!\n--\nBob Smith";

console.log(extractSignature(message));

expected output:

{ text: 'Wow. Awesome!', signature: '--\nBob Smith' }

Why the whole talon.signature.bruteforce.extractSignature?

In the original library, there are multiple ways of extracting signatures. Here is implemented only one of the available methods, but I chose to keep the same namespace structure.

Roadmap

What's working?

  • The bruteforce method of extracting signature
  • Added French support

What's not working?

  • Everything else, including:
    • machine-learning way of extracting signature
    • quotations extraction

What's planned?

  • We'll need quotations handling very soon, so it will land fast
  • The machine-learning thing is really not a priority

FAQs

Package last updated on 18 Feb 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts