mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-09-07 05:04:58 +08:00
💌 A beautiful, fast and fully open source mail client for Mac, Windows and Linux.
Summary: Most of the times when removing a sync worker (i.e. when removing an account), we would see database errors in the console. This happened because more often than not we would interrupt in the middle of message processing, but `processMessage` is not interruptible, which means that the worker would be interrupted right after processing its current message. However, if `processMessage` would take more than 500ms (the current timeout for stopping the worker), we would destroy the database before processing was done and it would throw a bunch of errors. To fix this, we just don't set a timeout when removing the worker as a consequence of removing an account. However, when we are removing the worker when we detect that it is stuck, we set a time out of 5 seconds. Test Plan: manually test removing accounts, verify that it doesn't error Reviewers: mark, halla, evan Reviewed By: halla, evan Differential Revision: https://phab.nylas.com/D4308 |
||
---|---|---|
.ebextensions | ||
arclib | ||
packages | ||
scripts | ||
scripts-tmp | ||
.arcconfig | ||
.arclint | ||
.babelrc | ||
.coffeelint.json | ||
.dockerignore | ||
.ebignore | ||
.eslintrc | ||
.gitignore | ||
.travis.yml | ||
appveyor.yml | ||
deploy-it | ||
Dockerfile | ||
lerna.json | ||
package.json | ||
README.md |
Nylas Mail
This is a collection of all components required to run Nylas Mail.
- Isomorphic Core: Shared code across local client and cloud servers
- Client App: The main Electron app for Nylas Mail mirrored to open source repo.
- Client Sync: The local mailsync engine integreated in Nylas Mail
- Client Private Plugins: Private Nylas Mail plugins (like SFDC)
- Cloud API: The cloud-based auth and metadata APIs for N1
- Cloud Core: Shared code used in all remote cloud services
- Cloud Workers: Cloud workers for services like send later
See /packages
for the separate pieces. Each folder in /packages
is
designed to be its own stand-alone repository. They are all bundled here
for the ease of source control management.
Initial Setup for All Local & Cloud Services:
New Computer (Mac):
New Computer (Linux - Debian/Ubuntu):
- Install Node 6+ via NodeSource (trusted):
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install -y nodejs
- Install Redis locally
sudo apt-get install -y redis-server redis-tools
benefit of letting us use subdomains.
Running Nylas Mail
npm install
(Only on fresh install and new packages)npm run start-client
: Starts Electron app clientnpm run start-cloud
: Starts cloud API locally