diff --git a/.appveyor.yml b/.appveyor.yml index ca43041cb..d269255ed 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -41,7 +41,7 @@ deploy: secret_access_key: secure: XlLzz7sdvrtgi4g459NvxLfrH/+hOutb+0Osz29unfi4Zcw9N8H8SEaq6m3ZeWc+ region: us-east-1 - bucket: merani-builds + bucket: mailspring-builds folder: "client/$(commit)" set_public: true diff --git a/.gitmodules b/.gitmodules index 791aa3a48..8eb973378 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,3 @@ [submodule "mailsync"] path = mailsync - url = git@github.com:Foundry376/Merani-Mailsync.git + url = git@github.com:Foundry376/Mailspring-Mailsync.git diff --git a/.travis.yml b/.travis.yml index 6e31337f5..f187d05dd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,8 +16,8 @@ addons: paths: - mailsync - mailsync.dSYM.zip - - Merani.dmg - - Merani.zip + - Mailspring.dmg + - Mailspring.zip - $(find . -type f -name *.deb | tr "\n" ":") - $(find . -type f -name *.rpm | tr "\n" ":") apt: @@ -72,7 +72,7 @@ before_install: - source app/build/resources/certs/mac/set_unix_env.sh; # Checkout the (currently private) C++ Mailsync codebase - GIT_SSH_COMMAND='ssh -i app/build/resources/certs/mailsync-deploy-key -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no' - SSH_ASKPASS=/Users/travis/build/Foundry376/Merani/app/build/resources/certs/ssh-askpass-fix + SSH_ASKPASS=/Users/travis/build/Foundry376/Mailspring/app/build/resources/certs/ssh-askpass-fix DISPLAY=nothing:0 git submodule update --init mailsync diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 92a654937..de973d71b 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,17 +1,17 @@ # Filing an Issue -Thanks for checking out Merani! If you have a feature request, be sure to check out the [open source roadmap](http://trello.com/b/hxsqB6vx/n1-open-source-roadmap). If someone has already requested +Thanks for checking out Mailspring! If you have a feature request, be sure to check out the [open source roadmap](http://trello.com/b/hxsqB6vx/n1-open-source-roadmap). If someone has already requested the feature you have in mind, you can upvote the card on Trello—to keep things organized, we often close feature requests on GitHub after creating Trello cards. If you've found a bug, try searching for similars issue before filing a new one. Please include -the version of Merani you're using, the platform you're using (Mac / Windows / Linux), and the +the version of Mailspring you're using, the platform you're using (Mac / Windows / Linux), and the type of email account. (Gmail, Outlook 365, etc.) # Pull requests We require all authors sign our [Contributor License -Agreement](https://www.getmerani.com/cla.html) before pull requests (even +Agreement](https://www.getmailspring.com/cla.html) before pull requests (even minor ones) can be accepted. (It's similar to other projects, like NodeJS Meteor, or React). I'm really sorry, but Legal made us do it. diff --git a/ISSUE_TEMPLATE.md b/ISSUE_TEMPLATE.md index b2fa10189..327a0973c 100644 --- a/ISSUE_TEMPLATE.md +++ b/ISSUE_TEMPLATE.md @@ -1,20 +1,20 @@ ##### Are there any related issues? - + ... ##### What operating system are you using? ... -##### What version of Merani are you using? +##### What version of Mailspring are you using? ... -- diff --git a/README.md b/README.md index 5b4b52c35..7e9d92690 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,14 @@ -💌 Merani +💌 Mailspring ==== -[](https://travis-ci.org/Foundry376/Merani) -[](https://ci.appveyor.com/project/Foundry376/Merani) +[](https://travis-ci.org/Foundry376/Mailspring) +[](https://ci.appveyor.com/project/Foundry376/Mailspring) **Hello! I'm one of the original authors of Nylas Mail and this is a significant fork of the app which completely replaces JavaScript mail sync with a C++ core built on Mailcore2. Unfortunately, it's not ready for use - check back soon!** - + High level Goals: --- @@ -25,39 +25,39 @@ High level Goals: Roadmap and Progress: --- -See [ROADMAP.md](https://github.com/Foundry376/Merani/blob/master/ROADMAP.md) +See [ROADMAP.md](https://github.com/Foundry376/Mailspring/blob/master/ROADMAP.md) ---------------- -**Merani is an open-source mail client built on the modern web with [Electron](https://github.com/atom/electron), [React](https://facebook.github.io/react/), and [Flux](https://facebook.github.io/flux/).** It is designed to be extensible, so it's easy to create new experiences and workflows around email. Want to learn more? Check out the [full documentation](https://Foundry376.github.io/Merani/). +**Mailspring is an open-source mail client built on the modern web with [Electron](https://github.com/atom/electron), [React](https://facebook.github.io/react/), and [Flux](https://facebook.github.io/flux/).** It is designed to be extensible, so it's easy to create new experiences and workflows around email. Want to learn more? Check out the [full documentation](https://Foundry376.github.io/Mailspring/). -[](http://slack-invite.getmerani.com) +[](http://slack-invite.getmailspring.com) -## Download Merani +## Download Mailspring -You can download compiled versions of Merani for Windows, Mac OS X, and Linux (.deb) from [https://getmerani.com/download](https://getmerani.com/download). You can also build and run Merani (Previously N1) on Fedora. On Arch Linux, you can install **[n1](https://aur.archlinux.org/packages/n1/)** or **[n1-git](https://aur.archlinux.org/packages/n1-git/)** from the aur. +You can download compiled versions of Mailspring for Windows, Mac OS X, and Linux (.deb) from [https://getmailspring.com/download](https://getmailspring.com/download). You can also build and run Mailspring (Previously N1) on Fedora. On Arch Linux, you can install **[n1](https://aur.archlinux.org/packages/n1/)** or **[n1-git](https://aur.archlinux.org/packages/n1-git/)** from the aur. ## Build A Plugin -Plugins lie at the heart of Merani 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/Merani/) to write your first plugin in five minutes. To create your own theme, go to our [Theme Starter guide](https://github.com/nylas/N1-theme-starter). +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. To create your own theme, go to our [Theme Starter guide](https://github.com/nylas/N1-theme-starter). If you would like to run the N1 source and contribute, check out our [contributing -guide](https://github.com/Foundry376/Merani/blob/master/CONTRIBUTING.md). +guide](https://github.com/Foundry376/Mailspring/blob/master/CONTRIBUTING.md). ## Themes -The Merani user interface is styled using CSS, which means it's easy to modify and extend. Merani comes stock with a few beautiful themes, and there are many more which have been built by community developers +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

+
{profile.login}
'
+ '
'
);
} else {
// Render the completed download. We include data-nylas-file so that if the image fails
diff --git a/app/internal_packages/message-list/package.json b/app/internal_packages/message-list/package.json
index 3444aa31a..cd004c6d7 100755
--- a/app/internal_packages/message-list/package.json
+++ b/app/internal_packages/message-list/package.json
@@ -7,7 +7,7 @@
"private": true,
"syncInit": true,
"engines": {
- "merani": "*"
+ "mailspring": "*"
},
"windowTypes": {
"default": true,
diff --git a/app/internal_packages/message-list/specs/autolinker-fixtures/nylas-url-in.html b/app/internal_packages/message-list/specs/autolinker-fixtures/nylas-url-in.html
index 64150c906..160ca0ff2 100644
--- a/app/internal_packages/message-list/specs/autolinker-fixtures/nylas-url-in.html
+++ b/app/internal_packages/message-list/specs/autolinker-fixtures/nylas-url-in.html
@@ -1,11 +1,11 @@
Hello world
-merani is cool.
+mailspring is cool.
-merani://plugins?test=stuff
+mailspring://plugins?test=stuff
-merani:plugins?test=stuff
+mailspring:plugins?test=stuff
-merani://plugins?test=stuff
+mailspring://plugins?test=stuff
-Don't you like merani?
+Don't you like mailspring?
diff --git a/app/internal_packages/message-list/specs/autolinker-fixtures/nylas-url-out.html b/app/internal_packages/message-list/specs/autolinker-fixtures/nylas-url-out.html
index af5c7229c..931539354 100644
--- a/app/internal_packages/message-list/specs/autolinker-fixtures/nylas-url-out.html
+++ b/app/internal_packages/message-list/specs/autolinker-fixtures/nylas-url-out.html
@@ -1,11 +1,11 @@
Hello world
-merani is cool.
+mailspring is cool.
-merani://plugins?test=stuff
+mailspring://plugins?test=stuff
-merani:plugins?test=stuff
+mailspring:plugins?test=stuff
-merani://plugins?test=stuff
+mailspring://plugins?test=stuff
-Don't you like merani?
+Don't you like mailspring?
diff --git a/app/internal_packages/message-view-on-github/lib/view-on-github-button.jsx b/app/internal_packages/message-view-on-github/lib/view-on-github-button.jsx
index 8dd7914b0..df4a31355 100644
--- a/app/internal_packages/message-view-on-github/lib/view-on-github-button.jsx
+++ b/app/internal_packages/message-view-on-github/lib/view-on-github-button.jsx
@@ -158,7 +158,7 @@ export default class ViewOnGithubButton extends React.Component {
>
{current.description}
Welcome to Merani
-Welcome to Mailspring
+
{`Note: Due to issues with your most recent payment, you've been temporarily downgraded to Merani ${effectivePlanName}. Click 'Billing' below to correct the issue.`}
+{`Note: Due to issues with your most recent payment, you've been temporarily downgraded to Mailspring ${effectivePlanName}. Click 'Billing' below to correct the issue.`}
) return (Thanks!
Gleb Polyakov
Head of Business Development and Growth
After Pixel -- nother mailA
Sent from Merani, the extensible, open source mail client.+ nother mailA
Sent from Mailspring, the extensible, open source mail client.On Apr 28 2016, at 1:46 pm, Ben Gotow (Careless) <careless@foundry376.com> wrote:
- Hi Ben this is just a test.
Sent from Merani, the extensible, open source mail client.+ Hi Ben this is just a test.
Sent from Mailspring, the extensible, open source mail client.On Apr 26 2016, at 6:03 pm, Ben Gotow <bengotow@gmail.com> wrote:
diff --git a/app/internal_packages/remove-tracking-pixels/specs/fixtures/a-before.txt b/app/internal_packages/remove-tracking-pixels/specs/fixtures/a-before.txt index 69a888872..8fe2c5555 100644 --- a/app/internal_packages/remove-tracking-pixels/specs/fixtures/a-before.txt +++ b/app/internal_packages/remove-tracking-pixels/specs/fixtures/a-before.txt @@ -5,16 +5,16 @@ could you please put me in touch with them, so that we can get you guys set up correctly as soon as possible?Thanks!
Gleb Polyakov
Head of Business Development and Growth
After Pixel -
Sent from Merani, the extensible, open source mail client. +Sent from Mailspring, the extensible, open source mail client. On Apr 28 2016, at 2:14 pm, Ben Gotow (Careless) <careless@foundry376.com> wrote:diff --git a/app/spec/fixtures/emails/email_5.html b/app/spec/fixtures/emails/email_5.html index e3df7866c..80e7a0987 100644 --- a/app/spec/fixtures/emails/email_5.html +++ b/app/spec/fixtures/emails/email_5.html @@ -14,8 +14,8 @@ class="gmail_sendername">Jeff Meister <jeff@esper.com>
- nother mailA
Sent from Merani, the extensible, open source mail client.+ nother mailA
Sent from Mailspring, the extensible, open source mail client.On Apr 28 2016, at 1:46 pm, Ben Gotow (Careless) <careless@foundry376.com> wrote:
- Hi Ben this is just a test.
Sent from Merani, the extensible, open source mail client.+ Hi Ben this is just a test.
Sent from Mailspring, the extensible, open source mail client.On Apr 26 2016, at 6:03 pm, Ben Gotow <bengotow@gmail.com> wrote:diff --git a/app/internal_packages/screenshot-mode/assets/font-override.css b/app/internal_packages/screenshot-mode/assets/font-override.css index aa1675801..c51035ee3 100644 --- a/app/internal_packages/screenshot-mode/assets/font-override.css +++ b/app/internal_packages/screenshot-mode/assets/font-override.css @@ -2,33 +2,33 @@ font-family: 'Nylas-Pro'; font-style: normal; font-weight: 200; - src: url('merani://screenshot-mode/assets/BLOKKNeue-Regular.otf'); + src: url('mailspring://screenshot-mode/assets/BLOKKNeue-Regular.otf'); } @font-face { font-family: 'Nylas-Pro'; font-style: normal; font-weight: 300; - src: url('merani://screenshot-mode/assets/BLOKKNeue-Regular.otf'); + src: url('mailspring://screenshot-mode/assets/BLOKKNeue-Regular.otf'); } @font-face { font-family: 'Nylas-Pro'; font-style: normal; font-weight: 400; - src: url('merani://screenshot-mode/assets/BLOKKNeue-Regular.otf'); + src: url('mailspring://screenshot-mode/assets/BLOKKNeue-Regular.otf'); } @font-face { font-family: 'Nylas-Pro'; font-style: normal; font-weight: 500; - src: url('merani://screenshot-mode/assets/BLOKKNeue-Regular.otf'); + src: url('mailspring://screenshot-mode/assets/BLOKKNeue-Regular.otf'); } @font-face { font-family: 'Nylas-Pro'; font-style: normal; font-weight: 600; - src: url('merani://screenshot-mode/assets/BLOKKNeue-Regular.otf'); + src: url('mailspring://screenshot-mode/assets/BLOKKNeue-Regular.otf'); } diff --git a/app/internal_packages/screenshot-mode/package.json b/app/internal_packages/screenshot-mode/package.json index e189111db..e0d8b9554 100755 --- a/app/internal_packages/screenshot-mode/package.json +++ b/app/internal_packages/screenshot-mode/package.json @@ -6,7 +6,7 @@ "license": "Proprietary", "private": true, "engines": { - "merani": "*" + "mailspring": "*" }, "windowTypes": { "all": true diff --git a/app/internal_packages/send-and-archive/lib/send-and-archive-extension.es6 b/app/internal_packages/send-and-archive/lib/send-and-archive-extension.es6 index 69fa5ba7d..5f78d3fec 100644 --- a/app/internal_packages/send-and-archive/lib/send-and-archive-extension.es6 +++ b/app/internal_packages/send-and-archive/lib/send-and-archive-extension.es6 @@ -12,7 +12,7 @@ export const name = 'SendAndArchiveExtension' export function sendActions() { return [{ title: 'Send and Archive', - iconUrl: 'merani://send-and-archive/images/composer-archive@2x.png', + iconUrl: 'mailspring://send-and-archive/images/composer-archive@2x.png', isAvailableForDraft({draft}) { return draft.threadId != null }, diff --git a/app/internal_packages/send-and-archive/package.json b/app/internal_packages/send-and-archive/package.json index c2ea5782e..a1dff5797 100755 --- a/app/internal_packages/send-and-archive/package.json +++ b/app/internal_packages/send-and-archive/package.json @@ -6,7 +6,7 @@ "license": "GPL-3.0", "private": true, "engines": { - "merani": "*" + "mailspring": "*" }, "windowTypes": { "default": true, diff --git a/app/internal_packages/system-tray/package.json b/app/internal_packages/system-tray/package.json index a5a9c27f2..a2c5c0228 100644 --- a/app/internal_packages/system-tray/package.json +++ b/app/internal_packages/system-tray/package.json @@ -6,6 +6,6 @@ "license": "GPL-3.0", "private": true, "engines": { - "merani": "*" + "mailspring": "*" } } diff --git a/app/internal_packages/theme-picker/package.json b/app/internal_packages/theme-picker/package.json index a7c133982..3dbc2e658 100644 --- a/app/internal_packages/theme-picker/package.json +++ b/app/internal_packages/theme-picker/package.json @@ -6,6 +6,6 @@ "license": "GPL-3.0", "private": true, "engines": { - "merani": "*" + "mailspring": "*" } } diff --git a/app/internal_packages/thread-list/package.json b/app/internal_packages/thread-list/package.json index ed113eb56..ce040334a 100755 --- a/app/internal_packages/thread-list/package.json +++ b/app/internal_packages/thread-list/package.json @@ -7,6 +7,6 @@ "private": true, "syncInit": true, "engines": { - "merani": "*" + "mailspring": "*" } } diff --git a/app/internal_packages/thread-search/package.json b/app/internal_packages/thread-search/package.json index dac663b33..044f10017 100755 --- a/app/internal_packages/thread-search/package.json +++ b/app/internal_packages/thread-search/package.json @@ -7,6 +7,6 @@ "private": true, "syncInit": true, "engines": { - "merani": "*" + "mailspring": "*" } } diff --git a/app/internal_packages/thread-snooze/lib/snooze-popover.jsx b/app/internal_packages/thread-snooze/lib/snooze-popover.jsx index ae85b1f2e..bcb0837bf 100644 --- a/app/internal_packages/thread-snooze/lib/snooze-popover.jsx +++ b/app/internal_packages/thread-snooze/lib/snooze-popover.jsx @@ -83,7 +83,7 @@ class SnoozePopover extends Component { renderItem = (itemLabel) => { const date = SnoozeDatesFactory[itemLabel](); const iconName = SnoozeIconNames[itemLabel]; - const iconPath = `merani://thread-snooze/assets/ic-snoozepopover-${iconName}@2x.png`; + const iconPath = `mailspring://thread-snooze/assets/ic-snoozepopover-${iconName}@2x.png`; return (
diff --git a/app/internal_packages/remove-tracking-pixels/specs/fixtures/b-after.txt b/app/internal_packages/remove-tracking-pixels/specs/fixtures/b-after.txt index f64f4e892..71fa076d9 100644 --- a/app/internal_packages/remove-tracking-pixels/specs/fixtures/b-after.txt +++ b/app/internal_packages/remove-tracking-pixels/specs/fixtures/b-after.txt @@ -1,6 +1,6 @@Hey Ben,
This is the reply! This tracking pixel should not be removed. -
+
This is the email I sent! diff --git a/app/internal_packages/remove-tracking-pixels/specs/fixtures/b-before.txt b/app/internal_packages/remove-tracking-pixels/specs/fixtures/b-before.txt index 53fb9e7ec..dd5cbd697 100644 --- a/app/internal_packages/remove-tracking-pixels/specs/fixtures/b-before.txt +++ b/app/internal_packages/remove-tracking-pixels/specs/fixtures/b-before.txt @@ -1,8 +1,8 @@Hey Ben,
This is the reply! This tracking pixel should not be removed. -
+
This is the email I sent! -+
**Open the theme directory** -> If you're on a Mac, you can find the theme files at `/Library/Application Support/Merani/packages`. To get there quickly, use the key command Cmd + Shift + G and enter `/Library/Application Support/Merani/packages`. +> If you're on a Mac, you can find the theme files at `/Library/Application Support/Mailspring/packages`. To get there quickly, use the key command Cmd + Shift + G and enter `/Library/Application Support/Mailspring/packages`. > **Change package.json** > In order to avoid conflicts between your custom theme and the pre-installed version, change `name` and `displayName` in `package.json` to: diff --git a/app/internal_packages/ui-darkside/package.json b/app/internal_packages/ui-darkside/package.json index b432d698e..a1bec47cf 100644 --- a/app/internal_packages/ui-darkside/package.json +++ b/app/internal_packages/ui-darkside/package.json @@ -3,10 +3,10 @@ "displayName": "Darkside", "theme": "ui", "version": "1.0.0", - "description": "A customizable, dark sidebar theme for Merani.", + "description": "A customizable, dark sidebar theme for Mailspring.", "license": "MIT", "engines": { - "merani": "*" + "mailspring": "*" }, "private": true } diff --git a/app/internal_packages/ui-less-is-more/package.json b/app/internal_packages/ui-less-is-more/package.json index 84e239838..1cecbcaff 100644 --- a/app/internal_packages/ui-less-is-more/package.json +++ b/app/internal_packages/ui-less-is-more/package.json @@ -3,10 +3,10 @@ "displayName": "Less Is More", "theme": "ui-less-is-more", "version": "1.0.7", - "description": "A minimal approach to email in Merani", + "description": "A minimal approach to email in Mailspring", "license": "MIT", "engines": { - "merani": "*" + "mailspring": "*" }, "styleSheets": ["less-is-more"], "private": true diff --git a/app/internal_packages/ui-light/package.json b/app/internal_packages/ui-light/package.json index 36fd6a5fb..65db1d05b 100644 --- a/app/internal_packages/ui-light/package.json +++ b/app/internal_packages/ui-light/package.json @@ -6,7 +6,7 @@ "description": "The N1 Client Theme", "license": "GPL-3.0", "engines": { - "merani": "*" + "mailspring": "*" }, "private": true } diff --git a/app/internal_packages/ui-taiga/package.json b/app/internal_packages/ui-taiga/package.json index 59ce79b82..dbbd11a7e 100644 --- a/app/internal_packages/ui-taiga/package.json +++ b/app/internal_packages/ui-taiga/package.json @@ -3,10 +3,10 @@ "displayName": "Taiga", "theme": "ui", "version": "0.2.8", - "description": "A clean, Mailbox-inspired theme for Merani.", + "description": "A clean, Mailbox-inspired theme for Mailspring.", "license": "GPL-3.0", "engines": { - "merani": "*" + "mailspring": "*" }, "styleSheets": ["controls", "email-frame", "sidebar", "threads", "notifications"], "private": true diff --git a/app/internal_packages/ui-ubuntu/README.md b/app/internal_packages/ui-ubuntu/README.md index a8e3e314b..21872b106 100644 --- a/app/internal_packages/ui-ubuntu/README.md +++ b/app/internal_packages/ui-ubuntu/README.md @@ -1,4 +1,4 @@ -# Ubuntu Theme for Merani # +# Ubuntu Theme for Mailspring #  diff --git a/app/internal_packages/ui-ubuntu/package.json b/app/internal_packages/ui-ubuntu/package.json index 9d6d97d50..7fde1e40f 100644 --- a/app/internal_packages/ui-ubuntu/package.json +++ b/app/internal_packages/ui-ubuntu/package.json @@ -6,7 +6,7 @@ "description": "The Ubuntu theme for N1.", "license": "Proprietary", "engines": { - "merani": "*" + "mailspring": "*" }, "private": true } diff --git a/app/internal_packages/undo-redo/package.json b/app/internal_packages/undo-redo/package.json index 0b68cd973..434c18a77 100644 --- a/app/internal_packages/undo-redo/package.json +++ b/app/internal_packages/undo-redo/package.json @@ -6,7 +6,7 @@ "license": "GPL-3.0", "private": true, "engines": { - "merani": "*" + "mailspring": "*" }, "windowTypes": { "default": true, diff --git a/app/internal_packages/unread-notifications/package.json b/app/internal_packages/unread-notifications/package.json index 583705946..48d320b76 100755 --- a/app/internal_packages/unread-notifications/package.json +++ b/app/internal_packages/unread-notifications/package.json @@ -6,6 +6,6 @@ "license": "GPL-3.0", "private": true, "engines": { - "merani": "*" + "mailspring": "*" } } diff --git a/app/internal_packages/verify-install-location/lib/main.es6 b/app/internal_packages/verify-install-location/lib/main.es6 index e9f820b0f..c942ea2f8 100644 --- a/app/internal_packages/verify-install-location/lib/main.es6 +++ b/app/internal_packages/verify-install-location/lib/main.es6 @@ -61,15 +61,15 @@ export function activate() { ] } - const msg = `We recommend that you move Merani to your Applications folder to get updates correctly and keep this folder uncluttered.` + const msg = `We recommend that you move Mailspring to your Applications folder to get updates correctly and keep this folder uncluttered.` const CANCEL_ID = 0; remote.dialog.showMessageBox({ type: "warning", buttons: buttons, - title: "A Better Place to Install Merani", - message: "Please move Merani to your Applications folder", + title: "A Better Place to Install Mailspring", + message: "Please move Mailspring to your Applications folder", detail: msg, defaultId: 0, cancelId: CANCEL_ID, diff --git a/app/internal_packages/verify-install-location/package.json b/app/internal_packages/verify-install-location/package.json index 61ad07917..a891abbd3 100644 --- a/app/internal_packages/verify-install-location/package.json +++ b/app/internal_packages/verify-install-location/package.json @@ -5,7 +5,7 @@ "description": "Verifies the install location for N1", "license": "GPL-3.0", "engines": { - "merani": "*" + "mailspring": "*" }, "windowTypes": { "default": true diff --git a/app/internal_packages_disabled/plugins/lib/package.jsx b/app/internal_packages_disabled/plugins/lib/package.jsx index 7b923938d..ac5742f7e 100644 --- a/app/internal_packages_disabled/plugins/lib/package.jsx +++ b/app/internal_packages_disabled/plugins/lib/package.jsx @@ -44,7 +44,7 @@ class Package extends React.Component { let uninstallButton = null; if (this.props.package.icon) { - icon = (); + icon = (
); } else if (this.props.package.theme) { icon = (
); } diff --git a/app/internal_packages_disabled/plugins/lib/packages-store.jsx b/app/internal_packages_disabled/plugins/lib/packages-store.jsx index df6fb0c72..288d86bfa 100644 --- a/app/internal_packages_disabled/plugins/lib/packages-store.jsx +++ b/app/internal_packages_disabled/plugins/lib/packages-store.jsx @@ -293,7 +293,7 @@ const PackagesStore = Reflux.createStore({ url: '', }, engines: { - merani: `>=${NylasEnv.getVersion().split('-')[0]}`, + mailspring: `>=${NylasEnv.getVersion().split('-')[0]}`, }, windowTypes: { 'default': true, diff --git a/app/internal_packages_disabled/plugins/lib/tab-installed.jsx b/app/internal_packages_disabled/plugins/lib/tab-installed.jsx index 6e569a547..af7de5cb6 100644 --- a/app/internal_packages_disabled/plugins/lib/tab-installed.jsx +++ b/app/internal_packages_disabled/plugins/lib/tab-installed.jsx @@ -70,7 +70,7 @@ class TabInstalled extends React.Component { {`You don't have any packages installed in ${NylasEnv.getConfigDirPath()}/dev/packages. `} These plugins are only loaded when you run the app with debug flags enabled (via the Developer menu).
Learn more about building - plugins with our docs. + plugins with our docs. ); devCTA = (Create New Plugin...); } diff --git a/app/internal_packages_disabled/plugins/package.json b/app/internal_packages_disabled/plugins/package.json index 798d120ef..619997c0b 100755 --- a/app/internal_packages_disabled/plugins/package.json +++ b/app/internal_packages_disabled/plugins/package.json @@ -6,6 +6,6 @@ "license": "GPL-3.0", "private": true, "engines": { - "merani": "*" + "mailspring": "*" } } diff --git a/app/menus/darwin.json b/app/menus/darwin.json index 732b00ca5..781ac3908 100644 --- a/app/menus/darwin.json +++ b/app/menus/darwin.json @@ -1,9 +1,9 @@ { "menu": [ { - "label": "Merani", + "label": "Mailspring", "submenu": [ - { "label": "About Merani", "command": "application:about" }, + { "label": "About Mailspring", "command": "application:about" }, { "type": "separator" }, { "label": "Preferences", "command": "application:open-preferences" }, { "label": "Change Theme...", "command": "window:launch-theme-picker" }, @@ -18,7 +18,7 @@ { "type": "separator" }, { "label": "Services", "submenu": [] }, { "type": "separator" }, - { "label": "Hide Merani", "command": "application:hide" }, + { "label": "Hide Mailspring", "command": "application:hide" }, { "label": "Hide Others", "command": "application:hide-other-applications" }, { "label": "Show All", "command": "application:unhide-all-applications" }, { "type": "separator" }, @@ -119,7 +119,7 @@ { "label": "Help", "submenu": [ - { "label": "Merani Help", "command": "application:view-help" } + { "label": "Mailspring Help", "command": "application:view-help" } ] } ] diff --git a/app/menus/linux.json b/app/menus/linux.json index 0eaea1afa..4b384f87f 100644 --- a/app/menus/linux.json +++ b/app/menus/linux.json @@ -98,7 +98,7 @@ "submenu": [ { "label": "VERSION", "enabled": false }, { "type": "separator" }, - { "label": "Merani Help", "command": "application:view-help" } + { "label": "Mailspring Help", "command": "application:view-help" } ] } ] diff --git a/app/package.json b/app/package.json index 615cd96ae..9d70a4e52 100644 --- a/app/package.json +++ b/app/package.json @@ -1,6 +1,6 @@ { - "name": "merani", - "productName": "Merani", + "name": "mailspring", + "productName": "Mailspring", "version": "2.0.15", "commitHash": "COMMIT_INSERTED_DURING_PACKAGING", "description": "The best email app for people and teams at work", diff --git a/app/script/mkdeb b/app/script/mkdeb index 178502ba4..f4ebfbc95 100755 --- a/app/script/mkdeb +++ b/app/script/mkdeb @@ -18,11 +18,11 @@ FILE_MODE=755 TARGET_ROOT="`mktemp -d`" chmod $FILE_MODE "$TARGET_ROOT" -TARGET="$TARGET_ROOT/merani-$VERSION-$ARCH" +TARGET="$TARGET_ROOT/mailspring-$VERSION-$ARCH" mkdir -m $FILE_MODE -p "$TARGET/usr" mkdir -m $FILE_MODE -p "$TARGET/usr/share" -cp -r "$APP_CONTENTS_DIRECTORY" "$TARGET/usr/share/merani" +cp -r "$APP_CONTENTS_DIRECTORY" "$TARGET/usr/share/mailspring" mkdir -m $FILE_MODE -p "$TARGET/DEBIAN" cp "$OUTPUT_PATH/control" "$TARGET/DEBIAN/control" @@ -31,28 +31,28 @@ cp "$LINUX_ASSETS_DIRECTORY/debian/postinst" "$TARGET/DEBIAN/postinst" cp "$LINUX_ASSETS_DIRECTORY/debian/postrm" "$TARGET/DEBIAN/postrm" mkdir -m $FILE_MODE -p "$TARGET/usr/bin" -ln -s "../share/merani/merani" "$TARGET/usr/bin/merani" -chmod +x "$TARGET/usr/bin/merani" +ln -s "../share/mailspring/mailspring" "$TARGET/usr/bin/mailspring" +chmod +x "$TARGET/usr/bin/mailspring" mkdir -m $FILE_MODE -p "$TARGET/usr/share/applications" -cp "$OUTPUT_PATH/merani.desktop" "$TARGET/usr/share/applications" +cp "$OUTPUT_PATH/mailspring.desktop" "$TARGET/usr/share/applications" mkdir -m $FILE_MODE -p "$TARGET/usr/share/pixmaps" -cp "$ICON_FILE" "$TARGET/usr/share/pixmaps/merani.png" +cp "$ICON_FILE" "$TARGET/usr/share/pixmaps/mailspring.png" mkdir -m $FILE_MODE -p "$TARGET/usr/share/icons/hicolor" for i in 256 128 64 32 16; do mkdir -p "$TARGET/usr/share/icons/hicolor/${i}x${i}/apps" - cp "$LINUX_ASSETS_DIRECTORY/icons/${i}.png" "$TARGET/usr/share/icons/hicolor/${i}x${i}/apps/merani.png" + cp "$LINUX_ASSETS_DIRECTORY/icons/${i}.png" "$TARGET/usr/share/icons/hicolor/${i}x${i}/apps/mailspring.png" done -# Copy generated LICENSE.md to /usr/share/doc/merani/copyright -mkdir -m $FILE_MODE -p "$TARGET/usr/share/doc/merani" -cp "$TARGET/usr/share/merani/LICENSE" "$TARGET/usr/share/doc/merani/copyright" +# Copy generated LICENSE.md to /usr/share/doc/mailspring/copyright +mkdir -m $FILE_MODE -p "$TARGET/usr/share/doc/mailspring" +cp "$TARGET/usr/share/mailspring/LICENSE" "$TARGET/usr/share/doc/mailspring/copyright" # Add lintian overrides mkdir -m $FILE_MODE -p "$TARGET/usr/share/lintian/overrides" -cp "$ROOT/build/resources/linux/debian/lintian-overrides" "$TARGET/usr/share/lintian/overrides/merani" +cp "$ROOT/build/resources/linux/debian/lintian-overrides" "$TARGET/usr/share/lintian/overrides/mailspring" # Remove group write from all files chmod -R g-w "$TARGET"; @@ -61,5 +61,5 @@ chmod -R g-w "$TARGET"; find "$TARGET" -type f -name "*.node" -exec chmod a-x {} \; fakeroot dpkg-deb -b "$TARGET" -mv "$TARGET_ROOT/merani-$VERSION-$ARCH.deb" "$OUTPUT_PATH" +mv "$TARGET_ROOT/mailspring-$VERSION-$ARCH.deb" "$OUTPUT_PATH" rm -rf "$TARGET_ROOT" diff --git a/app/script/mkrpm b/app/script/mkrpm index 9bcab23b9..f0a5ef6b2 100755 --- a/app/script/mkrpm +++ b/app/script/mkrpm @@ -21,10 +21,10 @@ mkdir -p $RPM_BUILD_ROOT/RPMS cp -r "$APP_CONTENTS_DIRECTORY/"* "$RPM_BUILD_ROOT/BUILD" cp -r "$LINUX_ASSETS_DIRECTORY/icons" "$RPM_BUILD_ROOT/BUILD" -cp "$BUILD_DIRECTORY/merani.spec" "$RPM_BUILD_ROOT/SPECS" -cp "$BUILD_DIRECTORY/merani.desktop" "$RPM_BUILD_ROOT/BUILD" +cp "$BUILD_DIRECTORY/mailspring.spec" "$RPM_BUILD_ROOT/SPECS" +cp "$BUILD_DIRECTORY/mailspring.desktop" "$RPM_BUILD_ROOT/BUILD" -rpmbuild -ba "$BUILD_DIRECTORY/merani.spec" -cp $RPM_BUILD_ROOT/RPMS/$ARCH/merani-*.rpm "$BUILD_DIRECTORY" +rpmbuild -ba "$BUILD_DIRECTORY/mailspring.spec" +cp $RPM_BUILD_ROOT/RPMS/$ARCH/mailspring-*.rpm "$BUILD_DIRECTORY" rm -rf "$RPM_BUILD_ROOT" diff --git a/app/spec/auto-update-manager-spec.coffee b/app/spec/auto-update-manager-spec.coffee index e874d0a42..e132fc10b 100644 --- a/app/spec/auto-update-manager-spec.coffee +++ b/app/spec/auto-update-manager-spec.coffee @@ -19,19 +19,19 @@ describe "AutoUpdateManager", -> it "correctly sets the feedURL", -> m = new AutoUpdateManager("3.222.1-abc", @config, @specMode) spyOn(m, "setupAutoUpdater") - expect(m.feedURL).toEqual('https://updates.getmerani.com/check/darwin/x64/3.222.1-abc/anonymous/stable') + expect(m.feedURL).toEqual('https://updates.getmailspring.com/check/darwin/x64/3.222.1-abc/anonymous/stable') describe "with no attached commit", -> it "correctly sets the feedURL", -> m = new AutoUpdateManager("3.222.1", @config, @specMode) spyOn(m, "setupAutoUpdater") - expect(m.feedURL).toEqual('https://updates.getmerani.com/check/darwin/x64/3.222.1/anonymous/stable') + expect(m.feedURL).toEqual('https://updates.getmailspring.com/check/darwin/x64/3.222.1/anonymous/stable') describe "when an update identity is already set", -> it "should send it and not save any changes", -> @nylasIdentityId = "test-nylas-id" m = new AutoUpdateManager("3.222.1", @config, @specMode) - expect(m.feedURL).toEqual('https://updates.getmerani.com/check/darwin/x64/3.222.1/test-nylas-id/stable') + expect(m.feedURL).toEqual('https://updates.getmailspring.com/check/darwin/x64/3.222.1/test-nylas-id/stable') describe "when an update identity is added", -> it "should update the feed URL", -> diff --git a/app/spec/fixtures/emails/email_1.html b/app/spec/fixtures/emails/email_1.html index b729bb643..0150f825d 100644 --- a/app/spec/fixtures/emails/email_1.html +++ b/app/spec/fixtures/emails/email_1.html @@ -24,7 +24,7 @@ Karim Date: jeudi 28 mai 2015 20:21
To: Jeff Meister <jeff@esper.com>
Cc: Jennie Lees <jennie@nylas.com>, Andrew Lee <andrew@esper.com>, Mackenzie Dallas <mackenzie@esper.com>, - support <support@getmerani.com>, Karim Hamidou <karim@nylas.com>, Christine Spang <spang@nylas.com>
+ support <support@getmailspring.com>, Karim Hamidou <karim@nylas.com>, Christine Spang <spang@nylas.com>
Subject: Re: Esper <-> Nilas
@@ -182,7 +182,7 @@ We will be running a script today to back-fix recurring events created before la@@ -219,7 +219,7 @@ We will be running a script today to back-fix recurring events created before la From: Andrew Lee <andrew@esper.com>
To: Karim Hamidou <karim@nylas.com>, Christine Spang <spang@nylas.com>, Jeff Meister <jeff@esper.com>
-Cc: Kavya Joshi <kavya@nylas.com>, support <support@getmerani.com>, Mackenzie Dallas <mackenzie@esper.com>, +Cc: Kavya Joshi <kavya@nylas.com>, support <support@getmailspring.com>, Mackenzie Dallas <mackenzie@esper.com>, Jennie Lees <jennie@nylas.com>
Subject: Re: Esper <-> Nilas
Date: lundi 18 mai 2015 19:20
To: Karim Hamidou <karim@nylas.com>, Christine Spang <spang@nylas.com>, Jeff Meister <jeff@esper.com>
-Cc: Kavya Joshi <kavya@nylas.com>, support <support@getmerani.com>, Mackenzie Dallas <mackenzie@esper.com>, +Cc: Kavya Joshi <kavya@nylas.com>, support <support@getmailspring.com>, Mackenzie Dallas <mackenzie@esper.com>, Jennie Lees <jennie@nylas.com>@@ -278,7 +278,7 @@ We will be running a script today to back-fix recurring events created before la From: Andrew Lee <andrew@esper.com>
Date: mercredi 13 mai 2015 20:08
To: Christine Spang <spang@nylas.com>, Jeff Meister <jeff@esper.com>
-Cc: Kavya Joshi <kavya@nylas.com>, support <support@getmerani.com>, Mackenzie Dallas <mackenzie@esper.com>, +Cc: Kavya Joshi <kavya@nylas.com>, support <support@getmailspring.com>, Mackenzie Dallas <mackenzie@esper.com>, Karim Hamidou <karim@nylas.com>, Jennie Lees <jennie@nylas.com>diff --git a/app/spec/fixtures/emails/email_19.html b/app/spec/fixtures/emails/email_19.html index c37e17dc3..8b5fb5ebc 100644 --- a/app/spec/fixtures/emails/email_19.html +++ b/app/spec/fixtures/emails/email_19.html @@ -9,7 +9,7 @@ and again
Sent from -Merani, the extensible, open source mail client. , the extensible, open source mail client.
@@ -22,7 +22,7 @@ hey evan sorry to spam you so much
Sent from -Merani, the extensible, open source mail client., the extensible, open source mail client.
![]()
@@ -33,7 +33,7 @@ wat
Sent from -Merani, the extensible, open source mail client., the extensible, open source mail client.
+Mailspring, the extensible, open source mail client.
@@ -44,7 +44,7 @@ this should only happen once
Sent from -Merani, the extensible, open source mail client., the extensible, open source mail client.
![]()
@@ -55,7 +55,7 @@ and again
Sent from -Merani, the extensible, open source mail client., the extensible, open source mail client.
diff --git a/app/spec/fixtures/emails/email_19_stripped.html b/app/spec/fixtures/emails/email_19_stripped.html index 707c027e4..13cbf39fb 100644 --- a/app/spec/fixtures/emails/email_19_stripped.html +++ b/app/spec/fixtures/emails/email_19_stripped.html @@ -5,7 +5,7 @@ and again
@@ -64,7 +64,7 @@ On Nov 4 2016, at 1:13 pm, Juan Tejada <juan@nylas.com> wrote:
eft:1ex;"> and some other stuff
-Sent from Merani, the exten= +Sent from Mailspring, the exten= sible, open source mail client.
Sent from -Merani, the extensible, open source mail client. +Mailspring, the extensible, open source mail client.
diff --git a/app/spec/fixtures/emails/email_23.html b/app/spec/fixtures/emails/email_23.html index c11a8cdf7..fb7c8671b 100644 --- a/app/spec/fixtures/emails/email_23.html +++ b/app/spec/fixtures/emails/email_23.html @@ -172,7 +172,7 @@ On Oct 24 2016, at 11:54 pm, Last, Name <(858) 531-1718
Sent from -Merani, the extensible, open source mail client.+Mailspring, the extensible, open source mail client.
+Mailspring, the extensible, open source mail client.@@ -237,7 +237,7 @@ On Oct 18 2016, at 2:03 pm, Last, Name <(858) 531-1718
Sent from -Merani, the extensible, open source mail client.
+Mailspring, the extensible, open source mail client.@@ -277,7 +277,7 @@ On Oct 7 2016, at 9:17 am, Last, Name <(858) 531-1718
Sent from -Merani, the extensible, open source mail client.![]()
Date: Mon, Jun 22, 2015 at 4:00 PM
Subject: Nylas bug reports
To: support <support@getmerani.com>
Cc: Michael Grinich <support@getmailspring.com>
Cc: Michael Grinich <mg@nilas.com>, Christine Spang <spang@nylas.com>, Kavya Joshi < { +describe('"mailspring" protocol URL', () => { it('sends the file relative in the package as response', () => { let called = false; const request = new XMLHttpRequest(); request.addEventListener('load', () => { called = true; return }); - request.open('GET', 'merani://account-sidebar/package.json', true); + request.open('GET', 'mailspring://account-sidebar/package.json', true); request.send(); waitsFor('request to be done', () => called === true); diff --git a/app/spec/models/message-spec.coffee b/app/spec/models/message-spec.coffee index 85ee9cd54..d25d30c3d 100644 --- a/app/spec/models/message-spec.coffee +++ b/app/spec/models/message-spec.coffee @@ -31,7 +31,7 @@ describe "Message", -> { itMsg: "has plain br's and a signature" body: """ - + """ isEmpty: true }, @@ -53,14 +53,14 @@ describe "Message", -> { itMsg: "has empty tags" body: """ - + """ isEmpty: true }, { itMsg: "has nested characters" body: """ - + """ isEmpty: false }, diff --git a/app/spec/models/model-spec.es6 b/app/spec/models/model-spec.es6 index 24564464e..e4f7a140d 100644 --- a/app/spec/models/model-spec.es6 +++ b/app/spec/models/model-spec.es6 @@ -185,7 +185,7 @@ describe("Model", function modelSpecs() { this.m.fromJSON({'test_boolean': 'true'}); expect(this.m.testBoolean).toBe(true); - // this case is important - there are several columns that Merani treats + // this case is important - there are several columns that Mailspring treats // as booleans that are actually integers on the mailsync side for book keeping,. this.m.testBoolean = undefined; this.m.fromJSON({'test_boolean': 4}); diff --git a/app/spec_disabled/default-client-helper-spec.coffee b/app/spec_disabled/default-client-helper-spec.coffee index 3a531d551..9c9dabb05 100644 --- a/app/spec_disabled/default-client-helper-spec.coffee +++ b/app/spec_disabled/default-client-helper-spec.coffee @@ -150,7 +150,7 @@ describe "DefaultClientHelper", -> "LSHandlerContentTagClass": "public.filename-extension", "LSHandlerRoleAll": "com.sublimetext.2" }, { - "LSHandlerRoleAll": "com.merani.merani", + "LSHandlerRoleAll": "com.mailspring.mailspring", "LSHandlerURLScheme": "mailto" }]) @helper.isRegisteredForURLScheme 'mailto', (registered) -> @@ -166,7 +166,7 @@ describe "DefaultClientHelper", -> LSHandlerContentTagClass: "public.filename-extension", LSHandlerRoleAll: "com.sublimetext.2" },{ - LSHandlerRoleAll: "com.merani.merani", + LSHandlerRoleAll: "com.mailspring.mailspring", LSHandlerURLScheme: "atom" }]) @helper.isRegisteredForURLScheme 'mailto', (registered) -> @@ -198,7 +198,7 @@ describe "DefaultClientHelper", -> @helper.registerForURLScheme 'mailto', => @helper.readDefaults (defaults) -> match = _.find defaults, (d) -> - d.LSHandlerURLScheme is 'mailto' and d.LSHandlerRoleAll is 'com.merani.merani' + d.LSHandlerURLScheme is 'mailto' and d.LSHandlerRoleAll is 'com.mailspring.mailspring' expect(match).not.toBe(null) it "should write the new defaults", -> diff --git a/app/src/browser/application.es6 b/app/src/browser/application.es6 index 57cb73575..00513001f 100644 --- a/app/src/browser/application.es6 +++ b/app/src/browser/application.es6 @@ -16,7 +16,7 @@ import ApplicationMenu from './application-menu'; import AutoUpdateManager from './auto-update-manager'; import SystemTrayManager from './system-tray-manager'; import DefaultClientHelper from '../default-client-helper'; -import MeraniProtocolHandler from './merani-protocol-handler'; +import MailspringProtocolHandler from './mailspring-protocol-handler'; import ConfigPersistenceManager from './config-persistence-manager'; import MailsyncProcess from '../mailsync-process'; @@ -37,7 +37,7 @@ export default class Application extends EventEmitter { this.safeMode = safeMode; this.fileListCache = new FileListCache(); - this.meraniProtocolHandler = new MeraniProtocolHandler({configDirPath, resourcePath, safeMode}); + this.mailspringProtocolHandler = new MailspringProtocolHandler({configDirPath, resourcePath, safeMode}); try { const mailsync = new MailsyncProcess(options, null); @@ -88,9 +88,9 @@ export default class Application extends EventEmitter { if (process.platform === 'linux') { const helper = new DefaultClientHelper(); - helper.registerForURLScheme('merani'); + helper.registerForURLScheme('mailspring'); } else { - app.setAsDefaultProtocolClient('merani'); + app.setAsDefaultProtocolClient('mailspring'); } if (process.platform === 'darwin') { @@ -180,7 +180,7 @@ export default class Application extends EventEmitter { this.windowManager.ensureWindow(WindowManager.MAIN_WINDOW); } else { this.windowManager.ensureWindow(WindowManager.ONBOARDING_WINDOW, { - title: "Welcome to Merani", + title: "Welcome to Mailspring", }); } } @@ -310,7 +310,7 @@ export default class Application extends EventEmitter { }); this.on('application:view-help', () => { - const helpUrl = 'https://support.getmerani.com/hc/en-us/categories/200419318-Help-for-N1-users'; + const helpUrl = 'https://support.getmailspring.com/hc/en-us/categories/200419318-Help-for-N1-users'; require('electron').shell.openExternal(helpUrl); }); @@ -705,7 +705,7 @@ export default class Application extends EventEmitter { if (parts.protocol === 'mailto:') { main.sendMessage('mailto', urlToOpen); - } else if (parts.protocol === 'merani:') { + } else if (parts.protocol === 'mailspring:') { // if (parts.host === 'calendar') { // this.openCalendarURL(parts.path); if (parts.host === 'plugins') { diff --git a/app/src/browser/auto-update-manager.es6 b/app/src/browser/auto-update-manager.es6 index e7bd6cef3..087e31e13 100644 --- a/app/src/browser/auto-update-manager.es6 +++ b/app/src/browser/auto-update-manager.es6 @@ -41,9 +41,9 @@ export default class AutoUpdateManager extends EventEmitter { channel: this.preferredChannel, }; - let host = `updates.getmerani.com`; + let host = `updates.getmailspring.com`; if (this.config.get('env') === 'staging') { - host = `updates-staging.getmerani.com`; + host = `updates-staging.getmailspring.com`; } this.feedURL = `https://${host}/check/${params.platform}/${params.arch}/${params.version}/${params.id}/${params.channel}`; @@ -145,14 +145,14 @@ export default class AutoUpdateManager extends EventEmitter { // On windows the update has already been "installed" and shortcuts // already updated. You just need to restart the app to load the new // version. - autoUpdater.restartMerani(); + autoUpdater.restartMailspring(); } else { autoUpdater.quitAndInstall(); } } iconURL() { - const url = path.join(process.resourcesPath, 'app', 'merani.png'); + const url = path.join(process.resourcesPath, 'app', 'mailspring.png'); if (!fs.existsSync(url)) { return undefined; } @@ -167,7 +167,7 @@ export default class AutoUpdateManager extends EventEmitter { icon: this.iconURL(), message: 'No update available.', title: 'No Update Available', - detail: `You're running the latest version of Merani (${this.version}).`, + detail: `You're running the latest version of Mailspring (${this.version}).`, }); }; diff --git a/app/src/browser/main.js b/app/src/browser/main.js index 0836666fa..45bb2e6c0 100644 --- a/app/src/browser/main.js +++ b/app/src/browser/main.js @@ -16,12 +16,12 @@ if (typeof process.setFdLimit === 'function') { } const setupConfigDir = (args) => { - let defaultDirName = "Merani"; + let defaultDirName = "Mailspring"; if (args.devMode) { - defaultDirName = "Merani-dev"; + defaultDirName = "Mailspring-dev"; } if (args.specMode) { - defaultDirName = "Merani-spec"; + defaultDirName = "Mailspring-spec"; } const configDirPath = path.join(app.getPath('appData'), defaultDirName); mkdirp.sync(configDirPath); @@ -49,17 +49,17 @@ const setupErrorLogger = (args = {}) => { const declareOptions = (argv) => { const optimist = require('optimist'); const options = optimist(argv); - options.usage(`Merani\n\nUsage: merani [options]\n\nRun Merani: The open source extensible email client\n\n\`merani --dev\` to start the client in dev mode.\n\n\`merani --test\` to run unit tests.`); + options.usage(`Mailspring\n\nUsage: mailspring [options]\n\nRun Mailspring: The open source extensible email client\n\n\`mailspring --dev\` to start the client in dev mode.\n\n\`mailspring --test\` to run unit tests.`); options.alias('d', 'dev').boolean('d').describe('d', 'Run in development mode.'); options.alias('t', 'test').boolean('t').describe('t', 'Run the specified specs and exit with error code on failures.'); options.boolean('safe').describe('safe', 'Do not load packages from the settings `packages` or `dev/packages` folders.'); options.alias('h', 'help').boolean('h').describe('h', 'Print this usage message.'); options.alias('l', 'log-file').string('l').describe('l', 'Log all test output to file.'); - options.alias('c', 'config-dir-path').string('c').describe('c', 'Override the path to the Merani configuration directory'); + options.alias('c', 'config-dir-path').string('c').describe('c', 'Override the path to the Mailspring configuration directory'); options.alias('s', 'spec-directory').string('s').describe('s', 'Override the directory from which to run package specs'); options.alias('f', 'spec-file-pattern').string('f').describe('f', 'Override the default file regex to determine which tests should run (defaults to "-spec.(coffee|js|jsx|cjsx|es6|es)$" )'); options.alias('v', 'version').boolean('v').describe('v', 'Print the version.'); - options.alias('b', 'background').boolean('b').describe('b', 'Start Merani in the background'); + options.alias('b', 'background').boolean('b').describe('b', 'Start Mailspring in the background'); return options; }; @@ -93,7 +93,7 @@ const parseCommandLine = (argv) => { const pathsToOpen = []; // On Windows and Linux, mailto and file opens are passed in argv. Go through - // the items and pluck out things that look like mailto:, merani:, file paths + // the items and pluck out things that look like mailto:, mailspring:, file paths let ignoreNext = false; // args._ is all of the non-hyphenated options. for (const arg of args._) { @@ -109,7 +109,7 @@ const parseCommandLine = (argv) => { if (path.resolve(arg) === resourcePath) { continue; } - if (arg.startsWith('mailto:') || arg.startsWith('merani:')) { + if (arg.startsWith('mailto:') || arg.startsWith('mailspring:')) { urlsToOpen.push(arg); } else if ((arg[0] !== '-') && (/[/|\\]/.test(arg))) { pathsToOpen.push(arg); @@ -166,7 +166,7 @@ const handleStartupEventWithSquirrel = () => { ) return true case '--squirrel-updated': - WindowsUpdater.restartMerani(app) + WindowsUpdater.restartMailspring(app) return true case '--squirrel-uninstall': WindowsUpdater.removeShortcuts(() => @@ -182,7 +182,7 @@ const handleStartupEventWithSquirrel = () => { }; const start = () => { - app.setAppUserModelId('com.squirrel.merani.merani'); + app.setAppUserModelId('com.squirrel.mailspring.mailspring'); if (handleStartupEventWithSquirrel()) { return; } diff --git a/app/src/browser/merani-protocol-handler.es6 b/app/src/browser/merani-protocol-handler.es6 index e567e1ea8..c2a23bf6c 100644 --- a/app/src/browser/merani-protocol-handler.es6 +++ b/app/src/browser/merani-protocol-handler.es6 @@ -5,7 +5,7 @@ import path from 'path'; // Handles requests with 'nylas' protocol. // // It's created by {N1Application} upon instantiation and is used to create a -// custom resource loader for 'merani://' URLs. +// custom resource loader for 'mailspring://' URLs. // // The following directories are searched in order: // */assets @@ -28,7 +28,7 @@ export default class NylasProtocolHandler { // Creates the 'Nylas' custom protocol handler. registerNylasProtocol() { - protocol.registerFileProtocol('merani', (request, callback) => { + protocol.registerFileProtocol('mailspring', (request, callback) => { const relativePath = path.normalize(request.url.substr(7)); let filePath = null; diff --git a/app/src/browser/nylas-window.coffee b/app/src/browser/nylas-window.coffee index 3886fb505..4021f52f5 100644 --- a/app/src/browser/nylas-window.coffee +++ b/app/src/browser/nylas-window.coffee @@ -46,7 +46,7 @@ class NylasWindow browserWindowOptions = show: false - title: title ? 'Merani' + title: title ? 'Mailspring' frame: frame width: width height: height @@ -68,9 +68,9 @@ class NylasWindow # taskbar's icon. See https://github.com/atom/atom/issues/4811 for more. if process.platform is 'linux' unless WindowIconPath - WindowIconPath = path.resolve(__dirname, '..', '..', 'merani.png') + WindowIconPath = path.resolve(__dirname, '..', '..', 'mailspring.png') unless fs.existsSync(WindowIconPath) - WindowIconPath = path.resolve(__dirname, '..', '..', 'build', 'resources', 'merani.png') + WindowIconPath = path.resolve(__dirname, '..', '..', 'build', 'resources', 'mailspring.png') browserWindowOptions.icon = WindowIconPath @browserWindow = new BrowserWindow(browserWindowOptions) @@ -190,7 +190,7 @@ class NylasWindow chosen = dialog.showMessageBox @browserWindow, type: 'warning' buttons: ['Close', 'Keep Waiting'] - message: 'Merani is not responding' + message: 'Mailspring is not responding' detail: 'Would you like to force close it or keep waiting?' @browserWindow.destroy() if chosen is 0 @@ -209,8 +209,8 @@ class NylasWindow chosen = dialog.showMessageBox @browserWindow, type: 'warning' buttons: ['Close Window', 'Reload', 'Keep It Open'] - message: 'Merani has crashed' - detail: 'Please report this issue to us at support@getmerani.com.' + message: 'Mailspring has crashed' + detail: 'Please report this issue to us at support@getmailspring.com.' switch chosen when 0 then @browserWindow.destroy() when 1 then @browserWindow.reload() diff --git a/app/src/browser/system-tray-manager.es6 b/app/src/browser/system-tray-manager.es6 index cee3c10c4..3f5ffb9ac 100644 --- a/app/src/browser/system-tray-manager.es6 +++ b/app/src/browser/system-tray-manager.es6 @@ -15,7 +15,7 @@ function _getMenuTemplate(platform, application) { type: 'separator', }, { - label: 'Quit Merani', + label: 'Quit Mailspring', click: () => application.emit('application:quit'), }, ]; diff --git a/app/src/browser/windows-updater-squirrel-adapter.coffee b/app/src/browser/windows-updater-squirrel-adapter.coffee index b5b041c67..0c00bdb70 100644 --- a/app/src/browser/windows-updater-squirrel-adapter.coffee +++ b/app/src/browser/windows-updater-squirrel-adapter.coffee @@ -7,9 +7,9 @@ class WindowsUpdaterSquirrelAdapter setFeedURL: (@updateUrl) -> - restartMerani: -> + restartMailspring: -> if WindowsUpdater.existsSync() - WindowsUpdater.restartMerani(require('electron').app) + WindowsUpdater.restartMailspring(require('electron').app) else console.error("SquirrelUpdate does not exist") diff --git a/app/src/browser/windows-updater.js b/app/src/browser/windows-updater.js index bbf9722c3..c473a308e 100644 --- a/app/src/browser/windows-updater.js +++ b/app/src/browser/windows-updater.js @@ -5,7 +5,7 @@ * Read: https://github.com/electron-archive/grunt-electron-installer#handling-squirrel-events * Read: https://github.com/electron/electron/blob/master/docs/api/auto-updater.md#windows * - * When Merani gets installed on a Windows machine it gets put in: + * When Mailspring gets installed on a Windows machine it gets put in: * C:\Users\ \AppData\Local\NylasMail\app-x.x.x * * The `process.execPath` is: @@ -112,7 +112,7 @@ function createRegistryEntries({allowEscalation, registerDefaultIfPossible}, cal spawnArgs = [regPath]; } - fs.readFile(path.join(appFolder, 'resources', 'merani-mailto-registration.reg'), (err, data) => { + fs.readFile(path.join(appFolder, 'resources', 'mailspring-mailto-registration.reg'), (err, data) => { if (err || !data) { callback(err); return; @@ -126,7 +126,7 @@ function createRegistryEntries({allowEscalation, registerDefaultIfPossible}, cal importContents = importContents.replace(/{{HKEY_ROOT}}/g, 'HKEY_CURRENT_USER'); } - const importTempPath = path.join(os.tmpdir(), `merani-reg-${Date.now()}.reg`); + const importTempPath = path.join(os.tmpdir(), `mailspring-reg-${Date.now()}.reg`); fs.writeFile(importTempPath, importContents, (writeErr) => { if (writeErr) { @@ -136,7 +136,7 @@ function createRegistryEntries({allowEscalation, registerDefaultIfPossible}, cal spawn(spawnPath, spawnArgs.concat(['import', escapeBackticks(importTempPath)]), (spawnErr) => { if (isWindows7 && registerDefaultIfPossible) { - const defaultReg = path.join(appFolder, 'resources', 'merani-mailto-default.reg') + const defaultReg = path.join(appFolder, 'resources', 'mailspring-mailto-default.reg') spawn(spawnPath, spawnArgs.concat(['import', escapeBackticks(defaultReg)]), (spawnDefaultErr) => { callback(spawnDefaultErr, true); }); @@ -163,7 +163,7 @@ exports.createRegistryEntries = createRegistryEntries; exports.existsSync = () => fs.existsSync(updateDotExe) // Restart N1 using the version pointed to by the N1.cmd shim -exports.restartMerani = (app) => { +exports.restartMailspring = (app) => { app.once('will-quit', () => { spawnUpdate(['--processStart', exeName], (() => {}), {detached: true}); }); diff --git a/app/src/components/billing-modal.jsx b/app/src/components/billing-modal.jsx index d3ac4ab4f..b64211950 100644 --- a/app/src/components/billing-modal.jsx +++ b/app/src/components/billing-modal.jsx @@ -61,7 +61,7 @@ export default class BillingModal extends React.Component { webview.executeJavaScript(receiveUserInfo, false, async (result) => { if (!result) return; if (result !== IdentityStore.identityId()) { - NylasEnv.reportError(new Error("id.getmerani.com/payment_success did not have a valid #payment-success-data field")) + NylasEnv.reportError(new Error("id.getmailspring.com/payment_success did not have a valid #payment-success-data field")) } const listenForContinue = ` var el = document.querySelector('#continue-btn'); diff --git a/app/src/components/feature-used-up-modal.jsx b/app/src/components/feature-used-up-modal.jsx index 94773d4ea..446886a89 100644 --- a/app/src/components/feature-used-up-modal.jsx +++ b/app/src/components/feature-used-up-modal.jsx @@ -30,7 +30,7 @@ export default class FeatureUsedUpModal extends React.Component { } onGoToFeatures = () => { - shell.openExternal("https://getmerani.com/pro"); + shell.openExternal("https://getmailspring.com/pro"); }; onUpgrade = (e) => { @@ -61,7 +61,7 @@ export default class FeatureUsedUpModal extends React.Component { Want to {this.props.featureName} more?
-) } diff --git a/app/src/components/outline-view.jsx b/app/src/components/outline-view.jsx index 4b9dee9d3..7ba3fc3e4 100644 --- a/app/src/components/outline-view.jsx +++ b/app/src/components/outline-view.jsx @@ -134,7 +134,7 @@ class OutlineView extends Component { onMouseUp={this._onCreateButtonClicked} >Merani Pro includes:
+Mailspring Pro includes:
- Unlimited Snoozing
- Unlimited Open & Link Tracking
diff --git a/app/src/components/oauth-signin-page.jsx b/app/src/components/oauth-signin-page.jsx index 499316e2a..4abb11cfc 100644 --- a/app/src/components/oauth-signin-page.jsx +++ b/app/src/components/oauth-signin-page.jsx @@ -29,7 +29,7 @@ export default class OAuthSignInPage extends React.Component { * Once we have the token, we can use that to retrieve the full * account credentials or establish a direct connection ourselves. * Some Nylas backends vend all account credentials along with the - * token making this function unnecessary and a no-op. Merani + * token making this function unnecessary and a no-op. Mailspring * local sync needs to use the returned OAuth token to establish an * IMAP connection directly that may have its own set of failure * cases. @@ -141,7 +141,7 @@ export default class OAuthSignInPage extends React.Component { return () } @@ -151,7 +151,7 @@ export default class OAuthSignInPage extends React.Component {Successfully connected to {this.props.serviceName}!
-Adding your account to Merani…
+Adding your account to Mailspring…
Sorry, we had trouble logging you in
diff --git a/app/src/components/retina-img.jsx b/app/src/components/retina-img.jsx index 764cae08f..a736be288 100644 --- a/app/src/components/retina-img.jsx +++ b/app/src/components/retina-img.jsx @@ -76,7 +76,7 @@ class RetinaImg extends React.Component { - `mode` (required) One of the RetinaImg.Mode constants. See above for details. - `name` (optional) A {String} image name to display. - `url` (optional) A {String} url of an image to display. - May be an http, https, or `merani:// / ` URL. + May be an http, https, or `mailspring:// / ` URL. - `fallback` (optional) A {String} image name to use when `name` cannot be found. - `selected` (optional) Appends "-selected" to the end of the image name when when true - `active` (optional) Appends "-active" to the end of the image name when when true diff --git a/app/src/components/webview.jsx b/app/src/components/webview.jsx index f105e7f6f..a42a57c79 100644 --- a/app/src/components/webview.jsx +++ b/app/src/components/webview.jsx @@ -42,7 +42,7 @@ class InitialLoadingCover extends React.Component { if (this.props.error) { message = this.props.error; } else if (this.state.slow) { - message = "Still trying to reach id.getmerani.com…"; + message = "Still trying to reach id.getmailspring.com…"; } else { message = ' ' } @@ -137,7 +137,7 @@ export default class Webview extends React.Component { if (httpResponseCode >= 400) { const error = ` Could not reach Nylas. Please try again or contact - support@getmerani.com if the issue persists. + support@getmailspring.com if the issue persists. (${originalURL}: ${httpResponseCode}) `; this.setState({ready: false, error: error, webviewLoading: false}); diff --git a/app/src/default-client-helper.es6 b/app/src/default-client-helper.es6 index 6355d0392..a875f6251 100644 --- a/app/src/default-client-helper.es6 +++ b/app/src/default-client-helper.es6 @@ -2,7 +2,7 @@ import {exec} from 'child_process'; import fs from 'fs'; import {remote, shell} from 'electron'; -const bundleIdentifier = 'com.merani.merani'; +const bundleIdentifier = 'com.mailspring.mailspring'; class Windows { available() { @@ -32,9 +32,9 @@ class Windows { type: 'info', buttons: ['Learn More'], message: "Visit Windows Settings to change your default mail client", - detail: "You'll find Merani, along with other options, listed in Default Apps > Mail.", + detail: "You'll find Mailspring, along with other options, listed in Default Apps > Mail.", }, () => { - shell.openExternal('https://support.getmerani.com/hc/en-us/articles/229277648'); + shell.openExternal('https://support.getmailspring.com/hc/en-us/articles/229277648'); }); } @@ -58,10 +58,10 @@ class Windows { type: 'info', buttons: ['Learn More'], defaultId: 1, - message: "Visit Windows Settings to finish making Merani your mail client", + message: "Visit Windows Settings to finish making Mailspring your mail client", detail: "Click 'Learn More' to view instructions in our knowledge base.", }, () => { - shell.openExternal('https://support.getmerani.com/hc/en-us/articles/229277648'); + shell.openExternal('https://support.getmailspring.com/hc/en-us/articles/229277648'); }); } callback(null, null); diff --git a/app/src/error-logger.js b/app/src/error-logger.js index 2e1f62520..a16d8111f 100644 --- a/app/src/error-logger.js +++ b/app/src/error-logger.js @@ -120,9 +120,9 @@ module.exports = ErrorLogger = (function() { ErrorLogger.prototype._startCrashReporter = function(args) { crashReporter.start({ - productName: 'Merani', - companyName: 'Merani', - submitURL: 'http://merani_prod.bugsplat.com/post/bp/crash/postBP.php', + productName: 'Mailspring', + companyName: 'Mailspring', + submitURL: 'http://mailspring_prod.bugsplat.com/post/bp/crash/postBP.php', uploadToServer: true, autoSubmit: true, }) diff --git a/app/src/extensions/composer-extension.coffee b/app/src/extensions/composer-extension.coffee index cfa4cc8a6..4addf1fc7 100644 --- a/app/src/extensions/composer-extension.coffee +++ b/app/src/extensions/composer-extension.coffee @@ -98,8 +98,8 @@ class ComposerExtension extends ContenteditableExtension # # - `tooltip`: A one or two word description of what your icon does # - # - `iconUrl`: The url of your icon. It should be in the `merani://` - # scheme. For example: `merani://your-package-name/assets/my-icon@2x.png`. + # - `iconUrl`: The url of your icon. It should be in the `mailspring://` + # scheme. For example: `mailspring://your-package-name/assets/my-icon@2x.png`. # Note, we will downsample your image by 2x (for Retina screens), so make # sure it's twice the resolution. The icon should be black and white. We # will directly pass the `url` prop of a {RetinaImg} diff --git a/app/src/flux/mailsync-bridge.es6 b/app/src/flux/mailsync-bridge.es6 index 98d86ccf9..622074898 100644 --- a/app/src/flux/mailsync-bridge.es6 +++ b/app/src/flux/mailsync-bridge.es6 @@ -216,8 +216,8 @@ export default class MailsyncBridge { this._crashTracker.recordClientCrash(fullAccountJSON, {code, error, signal}) const isAuthFailure = ( - `${error}`.includes("Response Code: 401") || // merani services - `${error}`.includes("Response Code: 403") || // merani services + `${error}`.includes("Response Code: 401") || // mailspring services + `${error}`.includes("Response Code: 403") || // mailspring services `${error}`.includes("ErrorAuthentication") // mailcore ); diff --git a/app/src/flux/models/category.es6 b/app/src/flux/models/category.es6 index 8a3b0b8f5..b4779c366 100644 --- a/app/src/flux/models/category.es6 +++ b/app/src/flux/models/category.es6 @@ -38,7 +38,7 @@ const HiddenRoleMap = ToObject([ "starred", "important", "snoozed", - "[Merani]", + "[Mailspring]", ]); /** @@ -62,7 +62,7 @@ Section: Models export default class Category extends Model { get displayName() { - for (const prefix of ['INBOX', '[Gmail]', '[Merani]']) { + for (const prefix of ['INBOX', '[Gmail]', '[Mailspring]']) { if (this.path.startsWith(prefix) && this.path.length > prefix.length + 1) { return this.path.substr(prefix.length + 1); // + delimiter } diff --git a/app/src/flux/models/message.es6 b/app/src/flux/models/message.es6 index bd67c9e98..0d10ab889 100644 --- a/app/src/flux/models/message.es6 +++ b/app/src/flux/models/message.es6 @@ -333,7 +333,7 @@ export default class Message extends ModelWithMetadata { return ( this.to.length === 1 && this.from.length === 1 && this.to[0].email === this.from[0].email && - (this.snippet || "").startsWith('Merani Reminder:') + (this.snippet || "").startsWith('Mailspring Reminder:') ) } } diff --git a/app/src/flux/nylas-api-request.es6 b/app/src/flux/nylas-api-request.es6 index 0328bde90..c1df8b20d 100644 --- a/app/src/flux/nylas-api-request.es6 +++ b/app/src/flux/nylas-api-request.es6 @@ -21,15 +21,15 @@ export function rootURLForServer(server) { if (server === 'identity') { return { development: "http://localhost:5101", - staging: "https://id-staging.getmerani.com", - production: "https://id.getmerani.com", + staging: "https://id-staging.getmailspring.com", + production: "https://id.getmailspring.com", }[env]; } if (server === 'accounts') { return { development: "http://localhost:5100", - staging: "https://accounts-staging.getmerani.com", - production: "https://accounts.getmerani.com", + staging: "https://accounts-staging.getmailspring.com", + production: "https://accounts.getmailspring.com", }[env]; } diff --git a/app/src/flux/stores/account-store.es6 b/app/src/flux/stores/account-store.es6 index 938e85daf..7cc4ad8e3 100644 --- a/app/src/flux/stores/account-store.es6 +++ b/app/src/flux/stores/account-store.es6 @@ -160,7 +160,7 @@ class AccountStore extends NylasStore { } /** - * When an account is removed from Merani, the AccountStore + * When an account is removed from Mailspring, the AccountStore * triggers. The local-sync/src/local-sync-worker/index.js listens to * the AccountStore and runs `ensureK2Consistency`. This will actually * delete the Account on the local sync side. diff --git a/app/src/flux/stores/folder-sync-progress-store.es6 b/app/src/flux/stores/folder-sync-progress-store.es6 index d2b36089d..83beab4db 100644 --- a/app/src/flux/stores/folder-sync-progress-store.es6 +++ b/app/src/flux/stores/folder-sync-progress-store.es6 @@ -66,7 +66,7 @@ class FolderSyncProgressStore extends NylasStore { } /** - * Returns true if Merani's local cache contains the entire list of available + * Returns true if Mailspring's local cache contains the entire list of available * folders and labels. * * This will be true if any of the available folders have started syncing, diff --git a/app/src/flux/stores/identity-store.es6 b/app/src/flux/stores/identity-store.es6 index 4cd90fa07..369688f83 100644 --- a/app/src/flux/stores/identity-store.es6 +++ b/app/src/flux/stores/identity-store.es6 @@ -8,7 +8,7 @@ import KeyManager from '../../key-manager'; import {makeRequest, rootURLForServer} from '../nylas-api-request'; // Note this key name is used when migrating to Nylas Pro accounts from old N1. -const KEYCHAIN_NAME = 'Merani Account'; +const KEYCHAIN_NAME = 'Mailspring Account'; class IdentityStore extends NylasStore { diff --git a/app/src/flux/stores/signature-store.es6 b/app/src/flux/stores/signature-store.es6 index 2a5d045c1..d6ebda6c7 100644 --- a/app/src/flux/stores/signature-store.es6 +++ b/app/src/flux/stores/signature-store.es6 @@ -2,7 +2,7 @@ import {Utils, Actions, AccountStore} from 'nylas-exports'; import NylasStore from 'nylas-store' import _ from 'underscore' -const DefaultSignatureText = "Sent from Merani, the best free email app for work"; +const DefaultSignatureText = "Sent from Mailspring, the best free email app for work"; class SignatureStore extends NylasStore { diff --git a/app/src/flux/tasks/send-draft-task.es6 b/app/src/flux/tasks/send-draft-task.es6 index f23f66507..64085b7b6 100644 --- a/app/src/flux/tasks/send-draft-task.es6 +++ b/app/src/flux/tasks/send-draft-task.es6 @@ -98,10 +98,10 @@ export default class SendDraftTask extends Task { if (key === 'no-sent-folder') { errorMessage = "We couldn't find a Sent folder in your account."; - errorDetail = "In order to send mail through Merani, your email account must have a Sent Mail folder."; + errorDetail = "In order to send mail through Mailspring, your email account must have a Sent Mail folder."; } else if (key === 'no-trash-folder') { errorMessage = "We couldn't find a Sent folder in your account."; - errorDetail = "In order to send mail through Merani, your email account must have a Trash folder."; + errorDetail = "In order to send mail through Mailspring, your email account must have a Trash folder."; } else if (key === 'send-partially-failed') { const [smtpError, emails] = debuginfo.split(':::'); errorMessage = "We were unable to deliver this message to some recipients. Click 'See Details' for more information." diff --git a/app/src/flux/tasks/send-feature-usage-event-task.es6 b/app/src/flux/tasks/send-feature-usage-event-task.es6 index 9069814f4..e46230aa4 100644 --- a/app/src/flux/tasks/send-feature-usage-event-task.es6 +++ b/app/src/flux/tasks/send-feature-usage-event-task.es6 @@ -15,7 +15,7 @@ export default class SendFeatureUsageEventTask extends Task { // Tasks must have an accountId so they can be assigned to a sync worker. // We don't really care what sync worker handles this, since it's just a - // POST to id.getmerani.com. Just assign the first account ID. + // POST to id.getmailspring.com. Just assign the first account ID. if (!this.accountId) { this.accountId = AccountStore.accountIds()[0]; } diff --git a/app/src/key-manager.es6 b/app/src/key-manager.es6 index 2c12f8e60..afad7e383 100644 --- a/app/src/key-manager.es6 +++ b/app/src/key-manager.es6 @@ -16,11 +16,11 @@ class KeyManager { * the names of these keys. If you change them be sure that old N1 is * fully deprecated or updated as well. */ - this.SERVICE_NAME = "Merani"; + this.SERVICE_NAME = "Mailspring"; if (NylasEnv.inDevMode()) { - this.SERVICE_NAME = "Merani Dev"; + this.SERVICE_NAME = "Mailspring Dev"; } - this.KEY_NAME = "Merani Keys" + this.KEY_NAME = "Mailspring Keys" } deleteAccountSecrets(account) { @@ -96,7 +96,7 @@ class KeyManager { } _try(fn) { - const ERR_MSG = "We couldn't store your password securely! For more information, visit https://support.getmerani.com/hc/en-us/articles/223790028"; + const ERR_MSG = "We couldn't store your password securely! For more information, visit https://support.getmailspring.com/hc/en-us/articles/223790028"; try { if (!fn()) { remote.dialog.showErrorBox("Password Management Error", ERR_MSG) diff --git a/app/src/native-notifications.es6 b/app/src/native-notifications.es6 index e79e96e89..9baf08053 100644 --- a/app/src/native-notifications.es6 +++ b/app/src/native-notifications.es6 @@ -28,7 +28,7 @@ class NativeNotifications { this._macNotificationsByTag[tag].close(); } notif = new MacNotifierNotification(title, { - bundleId: 'com.merani.merani', + bundleId: 'com.mailspring.mailspring', canReply: canReply, subtitle: subtitle, body: body, diff --git a/app/src/nylas-env.es6 b/app/src/nylas-env.es6 index e47d425db..8b070fc8b 100644 --- a/app/src/nylas-env.es6 +++ b/app/src/nylas-env.es6 @@ -201,9 +201,9 @@ export default class NylasEnvConstructor { // the window starts loading. require('nylas-exports'); - process.title = `Merani ${this.getWindowType()}`; + process.title = `Mailspring ${this.getWindowType()}`; return this.onWindowPropsReceived(() => { - process.title = `Merani ${this.getWindowType()}`; + process.title = `Mailspring ${this.getWindowType()}`; return process.title; }); } @@ -381,7 +381,7 @@ export default class NylasEnvConstructor { return this.getLoadSettings().isSpec; } - // Public: Get the version of Merani. + // Public: Get the version of Mailspring. // // Returns the version text {String}. getVersion() { @@ -394,7 +394,7 @@ export default class NylasEnvConstructor { return !/\w{7}/.test(this.getVersion()); } - // Public: Get the directory path to Merani's configuration area. + // Public: Get the directory path to Mailspring's configuration area. getConfigDirPath() { return this.getLoadSettings().configDirPath; } // Public: Get the time taken to completely load the current window. diff --git a/app/src/package-manager.es6 b/app/src/package-manager.es6 index 0651967d8..a14884262 100644 --- a/app/src/package-manager.es6 +++ b/app/src/package-manager.es6 @@ -74,9 +74,9 @@ export default class PackageManager { continue; } - if (!pkg.json.engines.merani) { + if (!pkg.json.engines.mailspring) { // don't use NylasEnv.reportError, I don't want to know about these. - console.error(`The package ${pkg.name} does not list "merani" in it's package.json's "engines" field. Ask the developer to test the plugin with Merani and add it.`); + console.error(`The package ${pkg.name} does not list "mailspring" in it's package.json's "engines" field. Ask the developer to test the plugin with Mailspring and add it.`); continue; } diff --git a/app/src/regexp-utils.coffee b/app/src/regexp-utils.coffee index a01445520..b96666802 100644 --- a/app/src/regexp-utils.coffee +++ b/app/src/regexp-utils.coffee @@ -36,7 +36,7 @@ RegExpUtils = # https://www.safaribooksonline.com/library/view/regular-expressions-cookbook/9780596802837/ch07s16.html ipAddressRegex: -> new RegExp(/^(?:[0-9]{1,3}\.){3}[0-9]{1,3}$/i) - meraniCommandRegex: -> new RegExp(/merani:\S+/i) + mailspringCommandRegex: -> new RegExp(/mailspring:\S+/i) # Test cases: https://regex101.com/r/pD7iS5/3 urlRegex: ({matchEntireString} = {}) -> @@ -48,10 +48,10 @@ RegExpUtils = '(' # This OR block matches any TLD if the URL includes a scheme, and only # the top ten TLDs if the scheme is omitted. - # YES - https://getmerani.ai + # YES - https://getmailspring.ai # YES - https://10.2.3.1 - # YES - getmerani.com - # NO - getmerani.ai + # YES - getmailspring.com + # NO - getmailspring.ai '(' # scheme, ala https:// (mandatory) '([A-Za-z]{3,9}:(?:\\/\\/))' @@ -141,12 +141,12 @@ RegExpUtils = imageTagRegex: -> / ]*src="([^"]*)"[^>]*>/g # Regex that matches our link tracking urls, surrounded by quotes - # ("link.getmerani.com...?redirect=") + # ("link.getmailspring.com...?redirect=") # Test cases: https://regex101.com/r/rB4fO4/3 # Returns the following capturing groups # 1.The redirect url: the actual url you want to visit by clicking a url # that matches this regex - trackedLinkRegex: -> /[\"|\']https:\/\/link\.getmerani\.com\/link\/.*?\?.*?redirect=([^&\"\']*).*?[\"|\']/g + trackedLinkRegex: -> /[\"|\']https:\/\/link\.getmailspring\.com\/link\/.*?\?.*?redirect=([^&\"\']*).*?[\"|\']/g punctuation: ({exclude}={}) -> exclude ?= [] diff --git a/app/src/registries/sound-registry.es6 b/app/src/registries/sound-registry.es6 index dca8cea4a..36ef54df4 100644 --- a/app/src/registries/sound-registry.es6 +++ b/app/src/registries/sound-registry.es6 @@ -18,7 +18,7 @@ class SoundRegistry { const {resourcePath} = NylasEnv.getLoadSettings(); if (typeof src === 'string') { - if (src.indexOf("merani://") === 0) { + if (src.indexOf("mailspring://") === 0) { a.src = src; } else { a.src = path.join(resourcePath, 'static', 'sounds', src); diff --git a/app/src/services/quoted-html-transformer.es6 b/app/src/services/quoted-html-transformer.es6 index 86f9d50ff..0deb79f5d 100644 --- a/app/src/services/quoted-html-transformer.es6 +++ b/app/src/services/quoted-html-transformer.es6 @@ -94,7 +94,7 @@ class QuotedHTMLTransformer { } // Remove any trailing
in the last leaf child of doc.body. - // This specific pattern occurs often when stripping Merani / gmail quotes. + // This specific pattern occurs often when stripping Mailspring / gmail quotes. let last = doc.body; while (last.children.length) { last = last.children[last.children.length - 1]; diff --git a/app/src/system-start-service.es6 b/app/src/system-start-service.es6 index 6348172f4..01b11dba7 100644 --- a/app/src/system-start-service.es6 +++ b/app/src/system-start-service.es6 @@ -52,18 +52,18 @@ class SystemStartServiceDarwin extends SystemStartServiceBase { } _launcherPath() { - return path.join("/", "Applications", "Merani.app", "Contents", - "MacOS", "Merani") + return path.join("/", "Applications", "Mailspring.app", "Contents", + "MacOS", "Mailspring") } _plistPath() { return path.join(process.env.HOME, "Library", - "LaunchAgents", "com.merani.plist"); + "LaunchAgents", "com.mailspring.plist"); } _launchdPlist() { return { - Label: "com.merani.merani", + Label: "com.mailspring.mailspring", Program: this._launcherPath(), ProgramArguments: ["--background"], RunAtLoad: true, @@ -91,7 +91,7 @@ class SystemStartServiceWin32 extends SystemStartServiceBase { configureToLaunchOnSystemStart() { ws.create(this._shortcutPath(), { target: this._launcherPath(), - args: "--processStart=merani.exe --process-start-args=--background", + args: "--processStart=mailspring.exe --process-start-args=--background", runStyle: ws.MIN, desc: "An extensible, open-source mail client built on the modern web.", }, (err) => { @@ -104,12 +104,12 @@ class SystemStartServiceWin32 extends SystemStartServiceBase { } _launcherPath() { - return path.join(process.env.LOCALAPPDATA, "merani", "Update.exe") + return path.join(process.env.LOCALAPPDATA, "mailspring", "Update.exe") } _shortcutPath() { return path.join(process.env.APPDATA, "Microsoft", "Windows", - "Start Menu", "Programs", "Startup", "Merani.lnk") + "Start Menu", "Programs", "Startup", "Mailspring.lnk") } } @@ -144,12 +144,12 @@ class SystemStartServiceLinux extends SystemStartServiceBase { } _launcherPath() { - return path.join('/', 'usr', 'share', 'applications', 'merani.desktop'); + return path.join('/', 'usr', 'share', 'applications', 'mailspring.desktop'); } _shortcutPath() { const configDir = process.env.XDG_CONFIG_HOME || path.join(os.homedir(), '.config'); - return path.join(configDir, 'autostart', 'merani.desktop'); + return path.join(configDir, 'autostart', 'mailspring.desktop'); } } diff --git a/app/src/window-event-handler.es6 b/app/src/window-event-handler.es6 index dd52e8286..05432aa04 100644 --- a/app/src/window-event-handler.es6 +++ b/app/src/window-event-handler.es6 @@ -219,7 +219,7 @@ export default class WindowEventHandler { return; } - if (['mailto:', 'merani:'].includes(protocol)) { + if (['mailto:', 'mailspring:'].includes(protocol)) { // We sometimes get mailto URIs that are not escaped properly, or have been only partially escaped. // (T1927) Be sure to escape them once, and completely, before we try to open them. This logic // *might* apply to http/https as well but it's unclear. @@ -290,11 +290,11 @@ export default class WindowEventHandler { } if (!NylasEnv.inDevMode()) { - console.log("%c Welcome to Merani! If you're exploring the source or building a " + + console.log("%c Welcome to Mailspring! If you're exploring the source or building a " + "plugin, you should enable debug flags. It's slower, but " + "gives you better exceptions, the debug version of React, " + "and more. Choose %c Developer > Run with Debug Flags %c " + - "from the menu. Also, check out http://Foundry376.github.io/Merani/ " + + "from the menu. Also, check out http://Foundry376.github.io/Mailspring/ " + "for documentation and sample code!", "background-color: antiquewhite;", "background-color: antiquewhite; font-weight:bold;", diff --git a/app/static/email-frame.less b/app/static/email-frame.less index 54798dcd0..88bc6524a 100644 --- a/app/static/email-frame.less +++ b/app/static/email-frame.less @@ -7,35 +7,35 @@ font-family: 'Nylas-Pro'; font-style: normal; font-weight: 200; - src: url('merani://custom-fonts/fonts/Custom-Thin.otf'); + src: url('mailspring://custom-fonts/fonts/Custom-Thin.otf'); } @font-face { font-family: 'Nylas-Pro'; font-style: normal; font-weight: 300; - src: url('merani://custom-fonts/fonts/Custom-Blond.otf'); + src: url('mailspring://custom-fonts/fonts/Custom-Blond.otf'); } @font-face { font-family: 'Nylas-Pro'; font-style: normal; font-weight: 400; - src: url('merani://custom-fonts/fonts/Custom-Normal.otf'); + src: url('mailspring://custom-fonts/fonts/Custom-Normal.otf'); } @font-face { font-family: 'Nylas-Pro'; font-style: normal; font-weight: 500; - src: url('merani://custom-fonts/fonts/Custom-Medium.otf'); + src: url('mailspring://custom-fonts/fonts/Custom-Medium.otf'); } @font-face { font-family: 'Nylas-Pro'; font-style: normal; font-weight: 600; - src: url('merani://custom-fonts/fonts/Custom-SemiBold.otf'); + src: url('mailspring://custom-fonts/fonts/Custom-SemiBold.otf'); } // Pro-SemiBold doesn't render emoji properly. Override the emjoi unicode @@ -44,7 +44,7 @@ font-family: 'Nylas-Pro'; font-style: normal; font-weight: 600; - src: url('merani://custom-fonts/fonts/Custom-Normal.otf'), Helvetica, sans-serif; + src: url('mailspring://custom-fonts/fonts/Custom-Normal.otf'), Helvetica, sans-serif; unicode-range: U+1F300-1F5FF, U+1F600-1F64F, U+1F680-1F6FF, U+2600-26FF; } diff --git a/app/static/index.html b/app/static/index.html index 7e3c2ab05..97e09e5c7 100644 --- a/app/static/index.html +++ b/app/static/index.html @@ -1,9 +1,9 @@ -Merani +Mailspring - + diff --git a/app/static/package-template/lib/my-message-sidebar.jsx b/app/static/package-template/lib/my-message-sidebar.jsx index 40fd176e8..e987273e9 100644 --- a/app/static/package-template/lib/my-message-sidebar.jsx +++ b/app/static/package-template/lib/my-message-sidebar.jsx @@ -38,10 +38,10 @@ export default class MyMessageSidebar extends React.Component { _renderContent() { // Want to include images or other static assets in your components? - // Reference them using the merani:// URL scheme: + // Reference them using the mailspring:// URL scheme: // //// return ( diff --git a/book.json b/book.json index c1d637a7b..f965564d2 100644 --- a/book.json +++ b/book.json @@ -1,6 +1,6 @@ { "gitbook": "3.2.2", - "title": "Merani Plugin SDK", + "title": "Mailspring Plugin SDK", "root": "./app/build/docs_src/", "plugins": [ "search", @@ -14,12 +14,12 @@ ], "pluginsConfig": { "editlink": { - "base": "https://github.com/Foundry376/Merani/tree/master", + "base": "https://github.com/Foundry376/Mailspring/tree/master", "label": "Edit This Page", "multilingual": false }, "github": { - "url": "https://github.com/Foundry376/Merani" + "url": "https://github.com/Foundry376/Mailspring" }, "favicon": { "shortcut": "/img/favicon.png" diff --git a/mailsync b/mailsync index 726d20cb6..e3aa42ead 160000 --- a/mailsync +++ b/mailsync @@ -1 +1 @@ -Subproject commit 726d20cb6df703bc867b7f8f9c730db3dfb9f3f6 +Subproject commit e3aa42eadbf0ae6606ee28167f0505d4715731fa diff --git a/package.json b/package.json index 4b19f3c8f..9528fcf79 100644 --- a/package.json +++ b/package.json @@ -1,12 +1,12 @@ { - "name": "merani-root", + "name": "mailspring-root", "version": "0.0.1", - "description": "Packages required to develop and build Merani", - "author": "Merani", + "description": "Packages required to develop and build Mailspring", + "author": "Mailspring", "license": "GPL-3.0", "repository": { "type": "git", - "url": "git+https://github.com/Foundry376/Merani.git" + "url": "git+https://github.com/Foundry376/Mailspring.git" }, "engines": { "node": "6.9.1", diff --git a/scripts/postinstall.js b/scripts/postinstall.js index 0f584a2cd..29b03df39 100644 --- a/scripts/postinstall.js +++ b/scripts/postinstall.js @@ -49,19 +49,19 @@ function downloadMailsync() { "linux-ia32": null, }[distKey]; if (!distDir) { - console.error(`\nSorry, a Merani Mailsync build for your machine (${distKey}) is not yet available.`) + console.error(`\nSorry, a Mailspring Mailsync build for your machine (${distKey}) is not yet available.`) return; } - const distS3URL = `https://merani-builds.s3.amazonaws.com/client/${head}/${distDir}/${filename}`; + const distS3URL = `https://mailspring-builds.s3.amazonaws.com/client/${head}/${distDir}/${filename}`; https.get(distS3URL, (response) => { if (response.statusCode === 200) { response.pipe(fs.createWriteStream(`app/${filename}`)); response.on('end', () => { - console.log(`\nDownloaded Merani Mailsync build ${distDir}-${head} to ./app\n`); + console.log(`\nDownloaded Mailspring Mailsync build ${distDir}-${head} to ./app\n`); }) } else { - console.error(`Sorry, an error occurred while fetching the Merani Mailsync build for your machine\n(${distS3URL})\n`); + console.error(`Sorry, an error occurred while fetching the Mailspring Mailsync build for your machine\n(${distS3URL})\n`); response.pipe(process.stderr); response.on('end', () => console.error('\n')); } @@ -91,7 +91,7 @@ npm('install', {cwd: './app', env: 'electron'}).then(() => { // if the user hasn't cloned the private mailsync module, download // the binary for their operating system that was shipped to S3. // if (!fs.existsSync('./mailsync/build.sh')) { - // console.log(`\n-- Downloading a compiled version of Merani mailsync --`) + // console.log(`\n-- Downloading a compiled version of Mailspring mailsync --`) // downloadMailsync(); // } }); diff --git a/scripts/unused/daily.js b/scripts/unused/daily.js index fe53eddcc..72f1854cd 100644 --- a/scripts/unused/daily.js +++ b/scripts/unused/daily.js @@ -71,7 +71,7 @@ function getFormattedLogs(mainLog) { function getChangelogHeader(nextVersion) { const date = new Date().toLocaleDateString() return ( - `# Merani Changelog + `# Mailspring Changelog ### ${nextVersion} (${date}) @@ -208,7 +208,7 @@ async function main(args) { await spawn('cp', ['-r', '../n1-keys-and-certificates', 'app/build/resources/certs']) await spawn('npm', ['install'], {env: {}}) await spawn('npm', ['run', 'build-client'], {env: {SIGN_BUILD: true}}) - await spawn('codesign', ['--verify', '--deep', '--verbose=2', '"app/dist/Merani-darwin-x64/Merani.app"']) + await spawn('codesign', ['--verify', '--deep', '--verbose=2', '"app/dist/Mailspring-darwin-x64/Mailspring.app"']) // await spawn('npm', ['run', 'upload-client']) } catch (err) { console.error('Errored while running build')