mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-09-07 13:14:47 +08:00
💌 A beautiful, fast and fully open source mail client for Mac, Windows and Linux.
Summary: When using the IMAPConnectionPool in the sync-worker, we requested 2 connections from the pool: 1 to listen for new mail, and 1 to actually operate on the mailbox. These 2 connections would be closed and returned to the pool at the end of each sync loop iteration. However, we never want to close the connection to listen for new mail. Closing this connection caused us to not listen for new mail in between sync loops, which was especially noticeable when initial sync was done because the delay between sync loops is 5 minutes. This commit makes it so we request the 2 connections separately from the connection pool, and keep the listener connection always open until we dispose of the sync-worker. Test Plan: manually make sure that I got new mail event listeners in between sync loops :( Reviewers: evan, spang, halla, mark Reviewed By: mark Differential Revision: https://phab.nylas.com/D4276 |
||
---|---|---|
.ebextensions | ||
arclib | ||
packages | ||
scripts | ||
.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