https://github.com/visorcraft/mailspring_inbox_rightclick
Adds right click context menu to inboxes
https://github.com/visorcraft/mailspring_inbox_rightclick
Last synced: 18 days ago
JSON representation
Adds right click context menu to inboxes
- Host: GitHub
- URL: https://github.com/visorcraft/mailspring_inbox_rightclick
- Owner: visorcraft
- License: mit
- Created: 2026-05-19T15:13:14.000Z (about 1 month ago)
- Default Branch: master
- Last Pushed: 2026-05-19T15:32:06.000Z (about 1 month ago)
- Last Synced: 2026-05-19T18:47:59.935Z (about 1 month ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Agents: AGENTS.md
Awesome Lists containing this project
README
# Inbox Mark All Read Context Menu
A small Mailspring plugin that adds `Mark All as Read` to the Inbox right-click menu in the account sidebar.
Mailspring has an `Edit > Mark All as Read` command, but in current builds it only acts on unread threads that are loaded in the visible thread list. This plugin queries every unread thread in the clicked inbox category and queues Mailspring's normal read-state sync tasks.
## What It Does
- Adds `Mark All as Read` when you right-click an `Inbox` sidebar item.
- Supports the unified `Inbox` item and per-account inbox items nested beneath it.
- Preserves Mailspring's existing `Export folder as .eml files...` action for single-account inboxes.
- Uses Mailspring's own `ChangeUnreadTask`, so read-state changes sync through Mailspring normally.
## Install
### From Mailspring
1. Download or clone this repository.
2. In Mailspring, open `Developer > Install a Plugin...`.
3. Choose this plugin folder.
4. Restart Mailspring.
### Manual Install
Copy this folder into Mailspring's `packages` directory, then restart Mailspring.
Common locations:
```text
Linux Flatpak:
~/.var/app/com.getmailspring.Mailspring/config/Mailspring/packages/inbox-mark-all-read-context-menu
Linux non-Flatpak:
~/.config/Mailspring/packages/inbox-mark-all-read-context-menu
macOS:
~/Library/Application Support/Mailspring/packages/inbox-mark-all-read-context-menu
Windows:
%APPDATA%\Mailspring\packages\inbox-mark-all-read-context-menu
```
## Development
This plugin has no npm dependencies.
```bash
npm test
```
## Notes
Mailspring does not currently expose a first-class plugin API for adding actions to existing sidebar context menus. This plugin uses a small DOM-level context-menu hook against the sidebar tree. It is intentionally narrow: it only intercepts recognized Inbox rows and leaves other sidebar right-click menus alone.
If Mailspring shows an unread count that does not correspond to any unread thread, that is a stale local cache/count issue rather than a context-menu issue. Use `Preferences > General > Local Data > Reset Cache` to rebuild Mailspring's local mail database without deleting accounts or settings.
Tested with Mailspring 1.21.0.