Inline Comment 0.2.0 - initial public release

Thunderbird/Betterbird add-on (Manifest V3): typing inside a quote splits
the quote and inserts your own text with a marker such as [OH]:.

- English and German user interface
- Licensed under the Mozilla Public License 2.0
- English documentation, JSDoc lint gate, 87 tests (node:test + jsdom)
This commit is contained in:
Oliver_Herb committed 2026-11-24 12:07:09 +01:00
commit 9053327486
57 files changed
+9849

No files matched your search

+69
View File
@@ -0,0 +1,69 @@
# Listing on addons.thunderbird.net
Texts and settings for the public listing of Inline Comment on
[addons.thunderbird.net](https://addons.thunderbird.net) (ATN). The listing is English by default
with a German translation (locale switch in the ATN listing editor).
The text files in this folder are written to be pasted as they are. ATN does not render Markdown in
these fields (the description accepts plain text with a few HTML tags), so the files use only
paragraphs, simple lists and one indented example, which read well as plain text. Check the preview
after pasting.
## What to enter where
| ATN field | Value |
| ------------------ | ----------------------------------------------------------------------------------------------------------------- |
| Name | From `src/_locales/<lang>/messages.json`, key `extensionName`: "Inline Comment" (en), "Inline-Kommentar" (de) |
| Add-on URL (slug) | `inline-comment` |
| Summary | From `src/_locales/<lang>/messages.json`, key `extensionDescription` (max. 250 characters) |
| Description | [description.en.md](./description.en.md), German: [description.de.md](./description.de.md) |
| Category | Message Composition |
| Tags (max. 20) | inline reply, interleaved reply, quote, bottom posting, reply marker, comment, compose |
| License | Mozilla Public License 2.0 |
| Homepage | <https://git.hassio-muc.de/Oliver_Herb/inline-comment> |
| Support website | <https://git.hassio-muc.de/Oliver_Herb/inline-comment/issues> |
| Support email | leave empty (support runs through the issue tracker) |
| Privacy policy | [privacy-policy.en.md](./privacy-policy.en.md), German: [privacy-policy.de.md](./privacy-policy.de.md) |
| Notes to reviewers | [notes-to-reviewers.md](./notes-to-reviewers.md) (English only) |
| Source code | Not needed: the package contains no minified, transpiled or generated code, the files are exactly those in `src/` |
| Release notes | The section of the version in [CHANGELOG.md](../CHANGELOG.md) |
| Icon | 512×512 PNG rendered from `src/icons/icon.svg` (see below) |
| Screenshots | Three screenshots, 16:10, 1280×800 pixels (see below) |
ATN reads the name and the summary from the uploaded package, localized through `_locales`. If they
are changed in the listing editor, keep `extensionName` and `extensionDescription` in both locales in
sync, so the add-ons manager and the listing say the same.
## Icon
Render the SVG icon to a 512×512 PNG with transparent background, for example with one of:
```bash
rsvg-convert -w 512 -h 512 src/icons/icon.svg -o icon-512.png
inkscape src/icons/icon.svg --export-type=png --export-filename=icon-512.png -w 512 -h 512
```
The PNG is a generated file and does not need to be committed. Render it again whenever
`src/icons/icon.svg` changes.
## Screenshots
Format 16:10, 1280×800 pixels, PNG: ATN names this the maximum and recommended size (640×400 is the
smaller alternative). Use a test profile with a neutral sample identity such as "Jane Doe" with an
address at `example.com` (marker `[JD]:`) and sample emails, so that no real names, addresses or
message contents are visible. ATN shows the same screenshots in every language and translates only
the captions, so take them with the English UI and enter the German captions with the locale switch.
| No. | What to show | Caption (en) | Caption (de) |
| --- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------- | ----------------------------------------------------------- |
| 1 | Compose window, HTML reply to an email with a nested quote: two comments with marker between parts of the quote, the "Inline Comment" toolbar button with the "on" badge visible | Type inside the quote: it is split and your comment set apart. | Im Zitat tippen: Es wird geteilt, dein Kommentar abgesetzt. |
| 2 | Options page: marker template, colours and the preview with the sample email | Choose marker, colors and spacing, with a live preview. | Marker, Farben und Abstände wählen, mit Vorschau. |
| 3 | Compose window, plain-text reply with a comment between two parts of the quote | Also works in plain-text emails. | Funktioniert auch in Reintext-E-Mails. |
## Before each submission
1. `npm run build` and `npx addons-linter@6.15.0 dist/inline-comment-<version>.xpi` (0 errors,
see [development.md](../.docs/guides/development.md)).
2. Work through the [manual test plan](../.docs/guides/testplan.md).
3. Check that the description, privacy policy and notes to reviewers still match the add-on (new
options, permissions or limitations).
+51
View File
@@ -0,0 +1,51 @@
Mit Inline-Kommentar beantwortest du eine E-Mail Punkt für Punkt, direkt im zitierten Text. Antworte auf eine Nachricht, klicke an eine beliebige Stelle im Zitat und tippe los: Das Zitat wird an dieser Stelle geteilt und dein eigener Text steht dazwischen, farbig abgesetzt und mit einem Marker wie [OH]: (deine Initialen) davor. Der Rest des Zitats geht unter deinem Kommentar weiter, so sieht der Empfänger auf einen Blick, auf welchen Satz du antwortest.
Eine Antwort sieht dann so aus:
> Können Sie mir die Unterlagen bis Freitag schicken?
[OH]: Ja, kommen morgen.
> Und bitte die Rechnung beilegen.
Bedienung
- Im Zitat klicken und tippen. Das Zitat wird geteilt, Marker und eigener Text erscheinen.
- Weiter schreiben, auch über mehrere Zeilen: Solange du im eigenen Kommentar bleibst, kommt kein neuer Marker dazu.
- Erst Enter im Zitat drücken und dann tippen: Die leere Zeile zwischen den beiden Zitat-Teilen bekommt den Marker.
- Text im Zitat markieren und tippen: Die Markierung wird durch deinen Kommentar ersetzt.
- Klicken, markieren und kopieren im Zitat ändert nichts. Erst ein getipptes Zeichen teilt das Zitat.
- Verschachtelte Zitate (Antworten auf Antworten) werden auf allen Ebenen geteilt.
- Strg+Z nimmt die Teilung zurück (mit den Standard-Einstellungen; ggf. zweimal drücken).
Knopf in der Symbolleiste
Der Knopf „Inline-Kommentar“ in der Symbolleiste des Verfassen-Fensters schaltet die Funktion für die aktuelle E-Mail an oder aus. Eine kleine Anzeige auf dem Knopf zeigt „an“ oder „aus“.
Einstellungen
Unter Add-ons und Themes, Inline-Kommentar, Einstellungen:
- Marker-Vorlage mit den Platzhaltern {initials} (Initialen), {name}, {email}, {date} und {time}. Standard: [{initials}]:
- Farben für Marker und Text, fett, kursiv und eine Hintergrundfarbe nach Wunsch.
- Eine Leerzeile vor oder nach dem Kommentar.
- Ob das Add-on in neuen E-Mails automatisch aktiv ist.
- Eigene Einstellungen je Absender-Identität, zum Beispiel ein anderer Marker für ein weiteres Konto.
- Eine Vorschau, die das Ergebnis schon beim Ändern der Einstellungen zeigt.
- Erweitert: wie das Zitat geteilt wird (durch den Editor, dann funktioniert Strg+Z, oder durch das Add-on als Notlösung) und Diagnose-Ausgaben für die Fehlersuche.
Der Kommentar wird nur mit Inline-Formatierung gestaltet. Marker und Farben bleiben deshalb auch in anderen Mailprogrammen und im Webmail sichtbar.
Reintext und Betterbird
Inline-Kommentar funktioniert auch in E-Mails im Reintext-Format: Marker und eigener Text werden als reiner Text ohne Farben eingefügt. Das Add-on läuft auch in Betterbird.
Bekannte Grenzen
- Einfügen aus der Zwischenablage im Zitat teilt das Zitat nicht.
- Eingaben über ein Eingabe-Hilfsfenster (zum Beispiel für Japanisch) teilen das Zitat nicht.
- In Reintext-E-Mails gibt es keine Leerzeile nach dem Kommentar, und eine mit Enter im Zitat erzeugte leere Zeile bekommt keinen Marker.
Datenschutz: Inline-Kommentar sammelt und überträgt keine Daten. Deine Einstellungen bleiben im lokalen Speicher des Add-ons auf deinem Rechner.
Benötigt Thunderbird 128 oder neuer. Die Oberfläche gibt es auf Deutsch und Englisch.
Hinweis zur Entstehung: Teile dieses Add-ons, insbesondere die Dokumentation und Fehlerbehebungen, sind mit Hilfe des KI-Assistenten Claude (Anthropic) entstanden.
+51
View File
@@ -0,0 +1,51 @@
Inline Comment helps you answer an email point by point, right inside the quoted text. Reply to a message, click anywhere in the quote and start typing: the quote is split at that point and your own text appears in between, set apart in color and introduced by a marker such as [OH]: (your initials). The rest of the quote continues below your comment, so the recipient sees at a glance which sentence you are answering.
A reply then looks like this:
> Could you send me the documents by Friday?
[OH]: Yes, they will arrive tomorrow.
> And please attach the invoice.
How to use
- Click inside a quote and type. The quote is split, the marker and your text appear.
- Keep typing, also across several lines: as long as you stay in your comment, no new marker is added.
- Press Enter inside a quote first and then type: the empty line between the two parts of the quote gets the marker.
- Select quoted text and type to replace it with your comment.
- Clicking, selecting and copying inside a quote change nothing. Only a typed character splits it.
- Nested quotes (replies to replies) are split on all levels.
- Ctrl+Z undoes the split (with the default settings; press it twice if needed).
Toolbar button
The "Inline Comment" button in the toolbar of the compose window turns the feature on or off for the current email. A badge on the button shows "on" or "off".
Options
Open Add-ons and Themes, Inline Comment, Options:
- Marker template with the placeholders {initials}, {name}, {email}, {date} and {time}. Default: [{initials}]:
- Colors for marker and text, bold, italic and an optional background color.
- A blank line before or after the comment.
- Whether the add-on is active automatically in new emails.
- Separate settings for each sender identity, for example a different marker for another account.
- A preview that shows the result while you change the settings.
- Advanced: how the quote is split (by the editor, so Ctrl+Z works, or by the add-on as a fallback) and diagnostic output for troubleshooting.
The comment is formatted with inline styles only, so the marker and the colors also show up in other mail programs and in webmail.
Plain text and Betterbird
Inline Comment also works in plain-text emails: the marker and your text are inserted as plain text, without colors. The add-on runs in Betterbird as well.
Known limitations
- Pasting from the clipboard inside a quote does not split the quote.
- Input through an input method editor (for example for Japanese) does not split the quote.
- In plain-text emails there is no blank line after the comment, and an empty line created with Enter inside a quote does not get the marker.
Privacy: Inline Comment collects and transmits no data. Your settings stay in the add-on's local storage on your computer.
Requires Thunderbird 128 or later. The user interface is available in English and German.
Development note: parts of this add-on, in particular the documentation and bug fixes, were created with the help of the AI assistant Claude (Anthropic).
+33
View File
@@ -0,0 +1,33 @@
Inline Comment splits a quote in the compose window when the user types inside it and inserts the typed text with a marker such as [XX]: (initials of the sender identity). Source code: https://git.hassio-muc.de/Oliver_Herb/inline-comment (MPL-2.0).
Test steps
1. Install the add-on. The options page opens once after installation; it can be closed.
2. Reply to an HTML email that contains some quoted text (compose in HTML format).
3. Click in the middle of a sentence inside the quote and type a few characters.
4. Expected: the quote is split at the cursor. Between the two parts of the quote there is a new line that starts with the marker [XX]: (XX = initials of the sender identity) in blue, followed by the typed text; the cursor stays after the text. Typing on, also after Enter, adds no further marker.
5. Press Ctrl+Z (twice if needed): the comment disappears and the quote is whole again.
6. Click the "Inline Comment" button in the toolbar of the compose window: the badge changes to "off" and typing inside the quote behaves normally (no split). Click again: the badge shows "on" and the feature works again.
7. Open Add-ons and Themes, Inline Comment, Options. Change the marker template to {name}: and pick another marker color; the preview updates. Go back to the open compose window and type inside the quote: the new marker and color are used without restarting.
8. Plain text: hold Shift while clicking Reply (opens the reply in the other format) or switch the account to plain-text composition. Type inside the quote: the quote is split and the line starts with [XX]: as plain text, without a ">" in front.
Permissions
- compose: compose.getComposeDetails (sender identity and whether the message is plain text) and compose.onIdentityChanged (update the marker when the sender is changed). Together with "scripting", it is also required for scripting.compose.
- scripting: scripting.compose.registerScripts loads the compose script into new compose windows; scripting.executeScript injects it into compose windows that were already open when the add-on was installed or updated.
- storage: storage.local holds the settings and the optional per-identity profiles; storage.session holds the on/off state of each open compose window, because the Manifest V3 background script can be terminated at any time.
- accountsRead: identities.get reads the name and email address of the sender identity to render the marker (initials, name or email placeholder). The options page uses identities.list (fallback accounts.list) to offer per-identity profiles.
The add-on requests no host permissions and makes no network requests. No data is collected or transmitted.
Why document.execCommand("insertHTML") is used
The comment is inserted with document.execCommand("insertHTML") so that the insertion becomes part of the editor's undo history and the user can undo it with Ctrl+Z. Direct DOM changes would bypass the undo stack. The HTML string passed to insertHTML is never assembled from strings: createCommentNode() in src/lib/marker.js builds the element with createElement, setAttribute, textContent and createTextNode, and the caller serializes it with outerHTML. The marker text and the typed text only ever become text nodes (textContent or createTextNode). The style attribute only contains values from sanitized settings: colors must match /^#[0-9a-f]{6}$/i (sanitizeSettings() in src/lib/settings.js, otherwise the default color is used), and boolean options map to fixed keywords such as "bold" or "italic". The add-on does not assign to innerHTML or outerHTML and does not use insertAdjacentHTML or document.write; test/dom-sinks.test.js in the repository enforces this. Other editor commands used: insertParagraph (lets the editor split the quote like Enter does), insertText, delete and undo.
Code
- No remote code: all scripts are part of the package, nothing is loaded at runtime.
- No minification, no transpiling, no bundler: the package is a plain ZIP of the src/ folder of the repository plus the LICENSE file (scripts/build.sh).
- No third-party libraries in the package. Prettier, ESLint and jsdom are used only as development tools for formatting, linting and tests and are not shipped.
Linter: addons-linter reports MANIFEST_PERMISSIONS warnings for "compose" and "accountsRead". These are Thunderbird permissions unknown to the linter; the warnings are expected.
+22
View File
@@ -0,0 +1,22 @@
Datenschutzerklärung für das Thunderbird-Add-on Inline-Kommentar (Add-on-ID inline-comment@ih-engineering.de). Stand: 24. November 2026.
Kurz gesagt: Inline-Kommentar sammelt keine Daten und überträgt keine Daten. Alles, was das Add-on braucht, bleibt auf deinem Rechner.
Was das Add-on speichert
- Deine Einstellungen (Marker-Vorlage, Farben, Abstände und die übrigen Optionen) und, falls du sie anlegst, eigene Profile für einzelne Absender-Identitäten. Sie liegen im lokalen Speicher des Add-ons in deinem Thunderbird-Profil. Profile sind mit der internen Identitäts-ID von Thunderbird verknüpft; Namen und E-Mail-Adressen werden nicht gespeichert.
- Ob das Add-on in einem offenen Verfassen-Fenster an- oder ausgeschaltet ist. Das wird nur im Sitzungsspeicher gehalten und verworfen, sobald das Fenster geschlossen oder Thunderbird beendet wird.
- Wenn du das Add-on entfernst, werden die gespeicherten Daten gelöscht.
Was das Add-on liest
- Name und E-Mail-Adresse der Absender-Identität der E-Mail, die du gerade schreibst, nur um den Marker zu bilden (zum Beispiel deine Initialen). Auf der Einstellungsseite wird die Liste deiner Identitäten gelesen, damit du ein Profil auswählen kannst. Diese Angaben werden nicht gespeichert und verlassen deinen Rechner nicht.
- Im Verfassen-Fenster prüft das Add-on, ob der Cursor in einem Zitat steht, und fügt dort deinen Kommentar ein. Von den Angaben zur E-Mail, die du gerade schreibst, verwendet es nur die Absender-Identität und ob die E-Mail im Reintext-Format geschrieben wird. Darüber hinaus liest, speichert oder versendet es den Inhalt deiner E-Mails nicht.
Netzwerkzugriff
Das Add-on stellt keine Verbindungen ins Netz her. Es enthält keine Analyse-, Telemetrie- oder Tracking-Funktionen, nutzt keine Dienste Dritter und lädt keinen Code nach.
Kontakt
Fragen zu dieser Erklärung: https://git.hassio-muc.de/Oliver_Herb/inline-comment/issues
+22
View File
@@ -0,0 +1,22 @@
Privacy policy of the Thunderbird add-on Inline Comment (add-on ID inline-comment@ih-engineering.de). Last updated: November 24, 2026.
In short: Inline Comment collects no data and transmits no data. Everything it needs stays on your computer.
What the add-on stores
- Your settings (marker template, colors, spacing and the other options) and, if you create them, separate profiles for individual sender identities. They are kept in the add-on's local extension storage in your Thunderbird profile. Profiles are linked to Thunderbird's internal identity ID; names and email addresses are not stored.
- Whether the add-on is switched on or off in an open compose window. This is kept in session storage only and is discarded when the window is closed or Thunderbird quits.
- Removing the add-on deletes the stored data.
What the add-on reads
- The name and email address of the sender identity of the email you are writing, only to render the marker (for example your initials). On the options page, the list of your identities is read so that you can choose a profile. This information is not stored and does not leave your computer.
- In the compose window, the add-on checks whether the cursor is inside a quote and inserts your comment there. Of the details of the email being written, it uses only the sender identity and whether the email is in plain-text format. It does not otherwise read, store or send the content of your emails.
Network access
The add-on makes no network requests. It contains no analytics, telemetry or tracking, uses no third-party services and loads no remote code.
Contact
Questions about this policy: https://git.hassio-muc.de/Oliver_Herb/inline-comment/issues