Mailspring/examples
Ben Gotow 606909e256 feat(mail-rules): Per-account mail rules filter incoming, existing mail
Summary:
Originally, this was going to be a totally independent package, but
I wasn't able to isolate the functionality and get it tied in to
the delta-stream consumption. Here's how it currently works:

- The preferences package has a new tab which allows you to edit
  mail filters. Filters are saved in a new core store, and a new
  stock component (ScenarioEditor) renders the editor. The editor
  takes a set of templates that define a value space, and outputs
  a valid set of values.

- A new MailFilterProcessor takes messages and creates tasks to
  apply the actions from the MailFiltersStore.

- The worker-sync package now uses the MailFilterProcessor to
  apply filters /before/ it calls didPassivelyReceiveNewModels,
  so filtrs are applied before any notifications are created.

- A new task, ReprocessMailFiltersTask allows you to run filters
  on all of your existing mail. It leverages the existing TaskQueue
  architecture to: a) resume where it left off if you quit midway,
  b) be queryable (for status) from all windows and c) cancelable.
  The TaskQueue is a bit strange because it runs performLocal and
  performRemote very differently, and I had to use `performRemote`.
  (todo refactor soon.)

This diff also changes the EditableList a bit to behave like a
controlled component and render focused / unfocused states.

Test Plan: Run tests, only for actual filter processing atm.

Reviewers: juan, evan

Reviewed By: evan

Differential Revision: https://phab.nylas.com/D2379
2015-12-23 02:19:32 -05:00
..
N1-Composer-Templates fix(templates): Example now depends on underscore 2015-12-07 17:33:51 -08:00
N1-Composer-Translate polish(quick-schedule): Use calendar icon in the composer 2015-12-09 10:55:08 -08:00
N1-Github-Contact-Card-Section fix(examples): small fixes in READMEs 2015-12-01 15:59:00 -08:00
N1-Message-View-on-Github fix(license): GPLv3 => GPL-3.0 2015-12-07 10:50:47 -08:00
N1-Personal-Level-Indicators fix(examples): small fixes in READMEs 2015-12-01 15:59:00 -08:00
N1-Phishing-Detection fix(license): GPLv3 => GPL-3.0 2015-12-07 10:50:47 -08:00
N1-Quick-Schedule fix(quickschedule): Several UI fixes 2015-12-09 16:41:30 -08:00
README.md actually no more gh-pages 2015-10-05 05:08:53 -07:00

N1 Example Packages

Here you will find well-annotated samples to showcase how to build packages in N1.

See more on https://nylas.com/N1/examples/

Getting Started

To get started, follow the getting started guides here: https://nylas.com/N1/docs/