|
| 1 | +--- |
| 2 | +title: Threaded View |
| 3 | +sidebar_position: 13 |
| 4 | +--- |
| 5 | + |
| 6 | +# Threaded Conversation View |
| 7 | + |
| 8 | +Matcha can group related emails into conversations using the JWZ threading |
| 9 | +algorithm (the same approach used by mutt and other classic mail clients). |
| 10 | +Replies, forwards, and quoted threads collapse under their root message so an |
| 11 | +inbox of 200 individual messages can render as 30 conversations. |
| 12 | + |
| 13 | +## Enabling threaded view |
| 14 | + |
| 15 | +There are three ways to control threading: |
| 16 | + |
| 17 | +### 1. Settings menu (global default) |
| 18 | + |
| 19 | +- Press `Esc` from the inbox to open the main menu. |
| 20 | +- Open **Settings** → **General**. |
| 21 | +- Toggle **Threaded Conversation View** to ON. |
| 22 | + |
| 23 | +This sets the default for every folder. New folders without an explicit |
| 24 | +override inherit this default immediately. |
| 25 | + |
| 26 | +### 2. Configuration file |
| 27 | + |
| 28 | +Edit `~/.config/matcha/config.json` and add: |
| 29 | + |
| 30 | +```json |
| 31 | +{ |
| 32 | + "enable_threaded": true |
| 33 | +} |
| 34 | +``` |
| 35 | + |
| 36 | +### 3. Keybind (per-folder override) |
| 37 | + |
| 38 | +Press `T` (configurable as `inbox.toggle_threaded` in `keybinds.json`) from any |
| 39 | +inbox view to toggle threading **for the current folder only**. The override is |
| 40 | +persisted in the folder cache and survives restarts. |
| 41 | + |
| 42 | +A per-folder override always wins over the global default. To return a folder |
| 43 | +to the default, toggle it back to match the default value. |
| 44 | + |
| 45 | +## Using threaded view |
| 46 | + |
| 47 | +When threading is enabled the email list shows the root message of each |
| 48 | +conversation with a count of replies. The default state is collapsed. |
| 49 | + |
| 50 | +| Key | Action | |
| 51 | +| -------- | --------------------------------------- | |
| 52 | +| `T` | Toggle threaded view for the folder | |
| 53 | +| `enter` | Open the focused message | |
| 54 | +| `space` | Expand or collapse the focused thread | |
| 55 | +| `j`/`k` | Navigate threads or messages within | |
| 56 | + |
| 57 | +Visual mode (`v`), delete (`d`), archive (`a`), and the other inbox keybinds |
| 58 | +behave the same as in flat view — operations applied to a collapsed thread |
| 59 | +target the root message; expand the thread first to act on a single reply. |
| 60 | + |
| 61 | +## How threading works |
| 62 | + |
| 63 | +Matcha threads emails entirely on the client. Threading uses: |
| 64 | + |
| 65 | +1. `Message-ID`, `In-Reply-To`, and `References` headers (RFC 5322). |
| 66 | +2. A subject-based fallback that strips `Re:`, `Fwd:`, and locale-specific |
| 67 | + prefixes when reply headers are missing. |
| 68 | + |
| 69 | +Threading is recomputed whenever the email cache changes for a folder, so new |
| 70 | +mail slots into existing conversations without a manual refresh. |
| 71 | + |
| 72 | +## Per-folder overrides |
| 73 | + |
| 74 | +The setting is split into two layers: |
| 75 | + |
| 76 | +- **Global default** — `Config.EnableThreaded` in `config.json`. |
| 77 | +- **Per-folder override** — stored in `folder_cache.json` under |
| 78 | + `threaded_folders`. Only folders the user has explicitly toggled appear here. |
| 79 | + |
| 80 | +If you change the global default in settings, every folder without an override |
| 81 | +flips to the new default on the next render. Folders with an override keep |
| 82 | +their explicit value until toggled again. |
0 commit comments