Commit graph

7521 commits

Author SHA1 Message Date
Ben Gotow 9b2c55b4cb Update autoconfig - step 1, sort existing settings 2024-06-02 17:39:41 -05:00
Ben Gotow 41496e792a Include Apple team ID for codesigning 2024-06-02 17:22:11 -05:00
Ben Gotow 18dce432d2 Upgrade to Less 3
via https://github.com/atom/less-cache/pull/17

Less 3 has a way smaller dependency tree and reduces our `npm audit` from `4 vulnerabilities` to 4. (and the remaining 4 are just regex issues, which should never have counted as vulnerabilities in the first place.)
2024-06-02 17:03:58 -05:00
Ben Gotow 78fdf8432d Use xcode 13 for the Mac builds, need notarytool 2024-06-02 16:53:18 -05:00
Ben Gotow 1c2c4ee695 Rework quicklook previews on windows, linux to avoid preload script
From Electron 20 onwards, preload scripts are sandboxed by default and no longer have access to a full Node.js environment. Practically, this means that you have a polyfilled require function that only has access to a limited set of APIs.

https://www.electronjs.org/docs/latest/tutorial/tutorial-preload
2024-06-02 15:16:24 -05:00
Ben Gotow 13f734acae Update rtlcss, xlsx, chrono-node to apply issues flagged by npm audit 2024-06-02 14:41:48 -05:00
Ben Gotow 8364579581 Update electron-packager, remove .dmg mac build - it’s unused 2024-06-02 09:29:16 -05:00
Ben Gotow c214361b92 Electron 22 => 30
- The shell.showItemInFolder call must be made via electron/remote per https://github.com/electron/electron/issues/38540

- MacOS Sonoma requires a different method of setting default apps (https://developer.apple.com/documentation/appkit/nsworkspace/3753005-setdefaultapplication), which is thankfully now implemented + working in Electron, use it!

- Fixed a few styling issues in themes that i noticed while testing
2024-06-02 00:13:02 -05:00
Ben Gotow e4aaa40f41 Switch from old scroll-touch-begin events to input-event 2024-06-01 19:23:29 -05:00
Sudeep Hazra 6347bbabff
Added signature icons for Medium, GitHub and YouTube (#2484)
* Added signature icons for Medium, GitHub and YouTube

* Reverted location of icons to Mailspring assets
2024-06-01 18:52:54 -05:00
Kasper e5d8e46268
Fix long word subject overflow (#2485) 2024-06-01 18:51:51 -05:00
Ben Gotow e7daf5abf2 Update Changelog to mention security contributions from Positive Technologies, Payatu, Sonar
Payatu - https://payatu.com
Postive Technologies - https://www.ptsecurity.com/ww-en/
Sonar - https://sonarsource.com
2024-02-01 22:11:58 -06:00
Ben Gotow 9a7e1a7843 1.13.3 2024-01-08 10:49:59 -06:00
Ben Gotow c6d29c2420 Remove warning related to 10+ year old vm compability setup 2024-01-08 10:45:28 -06:00
Ben Gotow 8b4f59ba49 Switch to DOMPurify for HTML email sanitization 2024-01-08 10:45:15 -06:00
Ben Gotow 6ab1b642b7 Fix inserting accents into the text editor via long-press on MacOS
Related: https://github.com/ianstormtaylor/slate/pull/3041, https://github.com/ianstormtaylor/slate/issues/982
2024-01-06 23:32:35 -06:00
Ben Gotow 1ebaa3d46c Fix escaping of subject and participant names in the print modal 2024-01-01 11:49:18 -06:00
Ben Gotow 8a0a82ea18 1.13.2 2023-12-10 12:36:47 -06:00
Ben Gotow 79b4063ef7 Fix Slate composition issues following Chrome 105 update
Related discussion: https://github.com/ianstormtaylor/slate/issues/5108

This block undoes the addition of div.onbeforeinput = () => {}. This is very, very
gross, but Slate uses the presence of this handler (Added in Chrome 105) to activate a
new version of it's event handling, which doesn't quite work properly in our old version
of Slate: https://github.com/ianstormtaylor/slate/issues/5108#issuecomment-1297591129

Since this was added to Chrome in v105, we can be fairly confident nothing else needs
it to exist, or will similarly fall back to document.addEventListener('beforeInput')

One day, we will update Slate to the latest version, but 0.50.x is effectively a rewrite
and we have /lots/ of custom plugins that need to be re-built and re-tested.
2023-12-10 12:19:52 -06:00
Marco Trevisan 181e2fb11a
snap: Remove unused permissions and duplicated libraries (#2478)
* snap: Remove various unneeeded plugs

Remove various permissions that the snap required and that are not
actually used. In particular now all the file and settings access is handled
by XDG portals, so there's no need to grant direct file access.

Also this is not a media app or network management software, so no
need to add screen inhibitors or network observation.

* snap: Do not add libnss3

That's already provided by GNOME so no need to duplicate it.

* Update snapcraft.yaml

Put back password-manager-service, home for now

---------

Co-authored-by: Ben Gotow <bengotow@gmail.com>
2023-12-10 12:19:29 -06:00
Janosch Braukmann 608f1c7354
Fix bug on invalid recipient (#2481)
Fix bug where when an invalid recipient is chosen, the validation produces an error due to a wrong return value.
2023-12-10 11:43:30 -06:00
Janosch Braukmann d219a65e75
feat: Add proper tray icons for Windows dark mode (#2476) 2023-12-10 11:39:35 -06:00
Ben Gotow 59cb1b1dbb 1.13.1 2023-11-21 16:00:38 -06:00
Ben Gotow faf9e1cee0 Fix slate issue caused by Chrome 106, with higher specificity 2023-11-21 15:28:27 -06:00
Ben Gotow 453416ae04 Don’t block account setup If we’re unable to load your Mailspring ID password 2023-11-21 13:51:45 -06:00
Ben Gotow d69e49a4ff Revert "Try Electron 27 for safestorage backend information on linux"
This reverts commit 5adc25b464.
2023-11-21 12:29:12 -06:00
Ben Gotow e2e0f882ae Copy snap configuration from chromium’s snapcraft.yaml 2023-11-21 12:05:15 -06:00
Ben Gotow 5adc25b464 Try Electron 27 for safestorage backend information on linux 2023-11-20 19:18:10 -06:00
Ben Gotow f34918daba Fix slate issue caused by Chrome 106
Was able to determine that this was the problem by bisecting our Electron upgrade and identifying which chrome version bump broke it, and then googling for slate + chrome version.

It looks like this entire concept of webkit-user-modify is deprecated, so I have no idea why this matters, but it looks like they changed the default to read-write-plaintext and it broke Slate for everyone.

https://github.com/ianstormtaylor/slate/issues/5110
2023-11-20 16:20:48 -06:00
Ben Gotow fbb683404d Downgrade Travis CI machine for older GLIBC 2023-11-19 21:21:43 -06:00
Ben Gotow 89078ce5cd 1.13.0 for testing Electron 22 builds 2023-11-15 08:43:37 -06:00
Ben Gotow ab89d1bfcd Fix Appveyor, Travis CI builds 2023-11-15 08:20:27 -06:00
Ben Gotow 79bdf8f940 1.2.0 for testing Electron 22 builds 2023-11-14 15:41:48 -06:00
Ben Gotow 7ed224ab19 Fix “Save to PDF” option in the Print popout window 2023-11-14 15:11:17 -06:00
Ben Gotow 3d1a513c4b Remove the “Twitter image” option in Prefs > Signature, it does not work with X 2023-11-14 15:11:01 -06:00
Janosch Braukmann a1998fcc94
Upgrade electron to version 22 (#2444)
* chore: Upgrade electron to version 22.3.26

* chore: Remove keytar dependency

* fix: Cannot find module 'uuid/v4' error
2023-11-14 14:40:51 -06:00
Janosch Braukmann 390a301dd7
Fix: Ensure correct keytar migration on snap and improve documentation (#2474) 2023-10-23 09:28:29 -05:00
Janosch Braukmann 16b6102319
chore: remove deprecated linux dependency gconf2 (#2473) 2023-10-23 09:26:33 -05:00
Thomas Cauquil 4643adff0d
Improve localization (#2466)
* feats: add script to improve localization

* fix: the script used to generate the translations didn't take certain concatenations into account.

Previously :
Many features are unavailable in plain-text mode. To create a single
Now :
Many features are unavailable in plain-text mode. To create a single plain-text draft, hold Alt or Option while clicking Compose or Reply.
-
Previously :
These features were %@ of the messages you sentin this time period, so these numbers do not reflect all of your activity. To enableread receipts and link tracking on emails you send, click the %@ or link tracking %@ icons in the composer.
Now :
These features were %@ of the messages you sent in this time period, so these numbers do not reflect all of your activity. To enable read receipts and link tracking on emails you send, click the %@ or link tracking %@ icons in the composer.
-
Previously :
To make changes to contacts in this account, you'll need to re-authorize Mailspring to access your data.\n\n
Now :
To make changes to contacts in this account, you'll need to re-authorize Mailspring to access your data.\n\nIn Mailspring's main window, go to Preferences > Accounts, select this account, and click \"Re-authenticate\". You'll be prompted to give Mailspring additional permission to update and delete your contacts.
...

* chore: improving the french and format-localizations.js executed

* feats: add templates to localizations

* fix(localization): define default template to english

* chore(localization): added explanations on how to use script files

---------

Co-authored-by: Ben Gotow <ben@foundry376.com>
2023-10-16 08:55:45 -05:00
Janosch Braukmann f7cd7a7bb6
fix: ensure smooth migration from keytar (#2472) 2023-10-11 11:15:00 -05:00
Ben Gotow 29805b89f3 Fix snapcraft.yaml to reflect small changes to craftctl 2023-10-09 16:33:51 -05:00
Ben Gotow 601d799ec8 Fix lint warning 2023-10-09 15:52:49 -05:00
Ben Gotow 8bc31f1696 1.12.0 2023-10-09 15:13:39 -05:00
Janosch Braukmann 85ef793af7
Rework tray icon style (#2470)
* feat: Make try icon style configurable

* feat: Harmonize tray icons
2023-10-09 14:44:03 -05:00
Janosch Braukmann 224b41e686
feat: Make snooze label unambigious (#2469) 2023-10-09 14:42:21 -05:00
Janosch Braukmann 36864a21cb
Add "Reply to" filter to email rules (#2468)
* Add "Reply to" filter to email rules and adjust some translations for the recipient filter

* fix: Also adjust recipient on lt.json
2023-10-09 14:41:53 -05:00
Peter Dave Hello c831130944
Improve zh-TW Traditional Chinese translation (#2467) 2023-10-09 14:27:50 -05:00
Dan Bishop 0f8f1fe671
Create en-gb.json (#2465) 2023-10-09 14:25:31 -05:00
সৌম্যদীপ ঘোষ(सौम्यदीपः घोषः) fbfaceaf0d
update to gnome extension and core22 (#2464) 2023-10-09 14:23:11 -05:00
ChocoTonic c58415ebc6
Fix date formatting issue and time not being set correctly (#2463)
The commit fixes a bug where the dateLikeString was not being formatted
correctly if it only contained 3 or 4 digits. The fix adds a check for
this case and formats the string accordingly.

Additionally, the commit addresses an issue where the time was not being
set correctly if the "gotTime" variable was false. The fix adds a check
for each iteration of the loop to ensure that the time is only set if
the corresponding "gotTime" value is false.
2023-10-09 14:22:08 -05:00