Mailspring/internal_packages/message-list/lib/plugins/autolinker-extension.coffee
Ben Gotow 4be05ff754 feat(tracking-pixels): New MessageStore extension cuts out tracking pixels you've *sent* so you don't trigger them
Summary:
- Remove thread_participants prop, we don't use them anywhere and the underscore-case is ugly.

- Move autolinker into extension, update autolinker to 0.18.1 for phone number support

- document message.coffee, add isFromMe()

- Add tracking pixel extension that removes pixels from mail you *send*. Maybe more features later.

Test Plan: Run 1 new test! (woo...)

Reviewers: evan

Reviewed By: evan

Differential Revision: https://phab.nylas.com/D1787
2015-07-23 10:57:13 -07:00

10 lines
349 B
CoffeeScript

Autolinker = require 'autolinker'
{MessageStoreExtension} = require 'nylas-exports'
class AutolinkerExtension extends MessageStoreExtension
@formatMessageBody: (message) ->
# Apply the autolinker pass to make emails and links clickable
message.body = Autolinker.link(message.body, {twitter: false})
module.exports = AutolinkerExtension