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)
60 lines
3.5 KiB
Markdown
60 lines
3.5 KiB
Markdown
# 0004 – Licence: Mozilla Public License 2.0
|
||
|
||
**Date:** 2026-11-24 · **Status:** accepted
|
||
|
||
## Context
|
||
|
||
The repository is published publicly, and the add-on is meant to be listed on addons.thunderbird.net
|
||
(ATN). The licence should:
|
||
|
||
- keep the author's attribution in copies, forks and reused files,
|
||
- make sure that improvements to the add-on's own files stay open, without restricting what the
|
||
add-on may be combined with,
|
||
- be easy to select on ATN and familiar to Thunderbird reviewers and contributors.
|
||
|
||
## Decision
|
||
|
||
All source files are licensed under the Mozilla Public License 2.0 (MPL-2.0).
|
||
|
||
- **Attribution through per-file notices.** Every source file starts with a notice: copyright line,
|
||
`SPDX-License-Identifier: MPL-2.0` and the text of MPL Exhibit A. Under §3.4 of the MPL, recipients
|
||
may not remove or alter the substance of licence notices, including copyright notices, in the
|
||
Source Code Form. Because the notice sits in each file, the attribution travels with every file,
|
||
even when single files are copied into another project.
|
||
- **File-level copyleft.** Modified versions of covered files must stay under MPL-2.0, and their
|
||
source must be available when they are distributed, also as part of an executable form such as an
|
||
XPI (§3.1, §3.2). New files in a larger work may use any licence (§3.3), so the add-on can be
|
||
combined with code under other licences.
|
||
- **Built-in licence on ATN.** MPL-2.0 is one of the licences offered by the ATN listing form, so no
|
||
custom licence text has to be maintained there.
|
||
- **Common for Thunderbird add-ons.** Thunderbird itself is licensed under MPL-2.0, and many add-ons
|
||
use it; reviewers and contributors know its terms.
|
||
- In addition, MPL-2.0 contains an explicit patent licence from contributors (§2.1) and, without
|
||
Exhibit B in the headers, stays compatible with the GPL and LGPL as "Secondary Licenses" (§3.3).
|
||
|
||
## Alternatives considered
|
||
|
||
- **MIT:** short, very permissive and widely known. But there is no copyleft, so modified versions may
|
||
be distributed without source, and the attribution lives in a single licence text that is easily
|
||
lost when individual files are copied.
|
||
- **Apache-2.0:** permissive, with an explicit patent licence and a NOTICE file for attribution. But
|
||
there is no copyleft either, and the NOTICE and change-notice handling adds process without keeping
|
||
changes to the add-on's own files open.
|
||
- **CPAL-1.0:** strong attribution, since the attribution notice has to be shown in the user
|
||
interface. But it is rarely used and less familiar to reviewers, it is not a built-in choice on
|
||
ATN, it is incompatible with the GPL, and the user interface attribution clause is awkward for an
|
||
add-on that lives in the compose window.
|
||
|
||
## Consequences
|
||
|
||
- `LICENSE` with the full MPL-2.0 text lies in the repository root and in the root of every XPI
|
||
(`scripts/build.sh`).
|
||
- Every `.js` and `.css` file starts with the licence header as a block comment (after a shebang, if
|
||
any); HTML and SVG files carry it as `<!-- … -->` (HTML directly after `<!doctype html>`), shell
|
||
scripts as `# ` lines. JSON files have no header, because JSON has no comments.
|
||
- `package.json` declares `"license": "MPL-2.0"`.
|
||
- `test/license.test.js` checks the licence text, the header in every source, test and script file,
|
||
the package metadata and that `scripts/build.sh` adds `LICENSE` to the XPI.
|
||
- New files get the same header. Third-party code may only be added if its licence is compatible, and
|
||
it keeps its own notices.
|