mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-10 18:23:21 +08:00
💌 A beautiful, fast and fully open source mail client for Mac, Windows and Linux.
3e895c74c9
Summary: Errors weren't getting reported because of a circular reference causing JSON.stringify to fail. We can't add the whole API `response` object onto the error object, because sometimes (like when the delta connection errors with a 401), the `response` object is circular. We only use it to the extract the status code anyway and it's a huge object. This diff excludes them from the APIError objects. We also have code to recover just in case JSON.stringify errors for some other weird reason. It'll still attempt to report the error prefixed with `Recovered Error` Finally, we used to spit only the `error.stack` to the console. This meant what we saw in the console didn't properly include the error messages being incredibly not useful. It's better to console.error the whole error object since that'll more nicely display on the inspector console Test Plan: manual Reviewers: juan, spang, mark, halla Reviewed By: halla Differential Revision: https://phab.nylas.com/D4154 |
||
---|---|---|
.ebextensions | ||
arclib | ||
packages | ||
scripts | ||
.arcconfig | ||
.arclint | ||
.babelrc | ||
.dockerignore | ||
.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