2018-01-29 13:25:57 +08:00
# 💌 Mailspring
2017-07-09 03:57:42 +08:00
2021-01-19 13:53:34 +08:00
[![Travis Status ](https://api.travis-ci.com/Foundry376/Mailspring.svg?branch=master )](https://travis-ci.com/github/Foundry376/Mailspring)
2017-09-06 04:37:40 +08:00
[![AppVeyor Status ](https://ci.appveyor.com/api/projects/status/iuuuy6d65u3x6bj6?svg=true )](https://ci.appveyor.com/project/Foundry376/Mailspring)
2017-08-03 03:54:13 +08:00
2018-02-21 12:17:15 +08:00
**Mailspring is a new version of Nylas Mail maintained by one of the original authors. It's faster, leaner, and shipping today!** It replaces the JavaScript sync code in Nylas Mail with a new C++ sync engine based on [Mailcore2 ](https://github.com/MailCore/mailcore2 ). It uses roughly half the RAM and CPU of Nylas Mail and idles with almost zero "CPU Wakes", which translates to great battery life. It also has an entirely revamped composer and other great new features.
2017-10-06 14:21:11 +08:00
2019-03-05 03:03:12 +08:00
Mailspring's UI is open source (GPLv3) and written in TypeScript with [Electron ](https://github.com/atom/electron ) and [React ](https://facebook.github.io/react/ ) - it's built on a plugin architecture and was designed to be easy to extend. Check out [CONTRIBUTING.md ](https://github.com/Foundry376/Mailspring/blob/master/CONTRIBUTING.md ) to get started!
2018-02-21 12:17:15 +08:00
2021-02-09 06:55:15 +08:00
Mailspring's sync engine is spawned by the Electron application and runs locally on your computer. [It is open source (GPLv3) and written in C++ and C. ](https://github.com/Foundry376/Mailspring-Sync ) For convenience, however, when you set up your development environment, Mailspring uses the latest version of the sync engine we've shipped for your platform so you don't need to pull sources or install its compile-time dependencies.
2017-07-12 01:01:05 +08:00
2017-09-06 04:37:40 +08:00
![Mailspring Screenshot ](https://github.com/Foundry376/Mailspring/raw/master/screenshots/hero_graphic_mac%402x.png )
2017-07-12 01:01:05 +08:00
2017-10-04 00:55:01 +08:00
## Features
2021-02-09 06:55:15 +08:00
Mailspring comes packed with powerful features like Unified Inbox, Snooze, Send
Later, Mail Rules, Templates and more. Mailspring Pro, which you can unlock
with a monthly subscription, adds even more features for people who send a ton
of email: link tracking, read receipts, mailbox analytics, contact and company
profiles. **All of these features run in the client - Mailspring does not send
your email credentials to the cloud.** For a full list of features, check out
[getmailspring.com ](https://getmailspring.com/ ).
2017-10-04 00:55:01 +08:00
## Download Mailspring
2021-02-09 06:55:15 +08:00
You can download compiled versions of Mailspring for Windows, Mac OS X, and
Linux (deb, rpm and snap) from
[https://getmailspring.com/download ](https://getmailspring.com/download ).
2017-10-04 00:55:01 +08:00
2021-01-13 10:00:18 +08:00
## Getting Help
You can find community-based help and discussion with other Mailspring users on our
[Discourse community ](https://community.getmailspring.com/ ).
2017-10-04 00:55:01 +08:00
## Contributing
2017-07-12 01:01:05 +08:00
2021-02-09 06:55:15 +08:00
Mailspring is entirely open-source. Pull requests and contributions are
welcome! There are three ways to contribute: building a plugin, building a
theme, and submitting pull requests to the project itself. When you're getting
started, you may want to join our
[Discourse ](https://community.getmailspring.com/ ) so you can ask questions and
learn from other people doing development.
2019-12-15 10:58:26 +08:00
2021-01-27 03:12:14 +08:00
[![Contributor Covenant ](https://img.shields.io/badge/Contributor%20Covenant-v2.0%20adopted-ff69b4.svg )](CODE_OF_CONDUCT.md)
2021-01-13 10:00:18 +08:00
2021-02-22 23:38:27 +08:00
### Running Mailspring from Source
2021-11-22 12:47:31 +08:00
To install all dependencies and run Mailspring from its source code,
2021-02-22 23:38:27 +08:00
run the following commands from the root directory of the Mailspring repository:
```
2021-11-22 12:47:31 +08:00
export npm_config_arch=x64 # If you are on an M1 / Apple Silicon Mac
2021-02-22 23:38:27 +08:00
npm install
npm start
```
You can attach command line parameters by separating them using a double hyphen:
```
npm start -- --help
```
### Building Mailspring
To build Mailspring, you need to run the following command from the root directory
of the Mailspring repository:
```
npm run-script build
```
2017-10-04 00:55:01 +08:00
### Building A Plugin
2016-11-10 07:16:44 +08:00
2021-02-09 06:55:15 +08:00
Plugins lie at the heart of Mailspring and give it its powerful features.
Building your own plugins allows you to integrate the app with other tools,
experiment with new workflows, and more. Follow the [Getting Started
guide](https://Foundry376.github.io/Mailspring/) to write your first plugin in
five minutes.
2016-11-10 07:16:44 +08:00
2021-02-09 06:55:15 +08:00
- To create your own theme, check out the
[Mailspring-Theme-Starter ](https://github.com/Foundry376/Mailspring-Theme-Starter ).
2019-10-09 10:26:03 +08:00
2021-02-09 06:55:15 +08:00
- To create your own plugin, check out the
[Mailspring-Plugin-Starter ](https://github.com/Foundry376/Mailspring-Plugin-Starter ).
2019-10-09 10:26:03 +08:00
2021-02-09 06:55:15 +08:00
A plugin "store" like the Chrome Web Store is coming soon, and will make it
easy for other users to discover plugins you create. (Right now, users need to
"sideload" the plugins into the app by downloading them and copying them into
place.)
2016-11-10 07:16:44 +08:00
2021-02-09 06:55:15 +08:00
You can share and browse Mailspring Plugins, and discuss plugin development
with other developers, on our
2021-01-13 10:00:18 +08:00
[Discourse ](https://community.getmailspring.com/ ).
2017-10-04 00:55:01 +08:00
### Building a Theme
2016-11-10 07:16:44 +08:00
2021-02-09 06:55:15 +08:00
The Mailspring user interface is styled using CSS, which means it's easy to
modify and extend. Mailspring comes stock with a few beautiful themes, and
there are many more which have been built by community developers. To start
creating a theme, [clone the theme starter ](https://github.com/Foundry376/Mailspring-Theme-Starter )!
2016-11-10 07:16:44 +08:00
2021-03-26 23:26:10 +08:00
If you are updating an existing Nylas theme for Mailspring here is a
[step by step tutorial ](https://community.getmailspring.com/t/updating-an-n1-nylas-mail-theme-for-mailspring/195 ).
Notice: as part of the update process you will probably need to [import mailspring base variables ](https://github.com/Foundry376/Mailspring/issues/326#issuecomment-343757775 ).
2018-02-27 03:17:53 +08:00
2021-02-09 06:55:15 +08:00
You can share and browse Mailspring Themes, and discuss theme development with other developers, on our [Discourse ](https://community.getmailspring.com/ ).
2021-01-13 10:00:18 +08:00
2018-10-10 08:33:59 +08:00
### Localizing / Translating
2021-02-09 06:55:15 +08:00
Mailspring (1.5.0 and above) supports localization. If you're a fluent speaker of
another language, we'd love your help improving translations. Check out the
[LOCALIZATION ](https://github.com/Foundry376/Mailspring/blob/master/LOCALIZATION.md )
guide for more information. You can discuss localization and translation with
other developers on our [Discourse ](https://community.getmailspring.com/ ).
2018-10-10 08:33:59 +08:00
2017-10-04 00:55:01 +08:00
### Contributing to Mailspring Core
2016-11-10 07:16:44 +08:00
2021-02-09 06:55:15 +08:00
Pull requests are always welcome - check out
[CONTRIBUTING ](https://github.com/Foundry376/Mailspring/blob/master/CONTRIBUTING.md )
for more information about setting up the development environment, running
tests locally, and submitting pull requests.