The server fetched upstream's latest published rules from GitHub at run time: a version nobody here tested, code-like expressions from an account we don't control, and the upstream name as a default in the admin form. The published rules of spam-filter v3.0.2 are now embedded (resources/spam-filter/, MIT, in THIRD-PARTY.md) and used whenever no other source is configured. An empty setting and upstream's old default both mean the bundled rules, so existing installs switch without a settings change; the URL stays an operator override (https:// or file://). The schema default is dropped and its description says what empty means, and the strip's rename pass does the same to each import. Rules load on first boot as before, and again whenever the bundled version differs from the last one loaded, which only adds missing rules and tags. That brings the AI classifier's LLM_* scores to installs that predate them: production has none today. upstream-watch now also opens an issue when spam-filter publishes a newer release; resources/spam-filter/README.md says how to take it. The antispam test now runs on the bundled rules, the path production takes; SPAM_RULES_URL tests another set. Unit tests cover the URL handling and that the bundled rules parse and score the AI tags as the AI spec says.
5.8 KiB
Third-party code
INBUXA is a fork of Stalwart. Stalwart is original work by Stalwart Labs LLC, not a fork of anything, but a few of its files carry code, adapted or ported, from other projects under permissive licenses. Those parts stay under their own licenses, not the AGPL, and their notices are reproduced here as the licenses require. Where a project offers MIT or Apache-2.0, INBUXA takes it under MIT.
tools/fork/strip.py lists every such file on each upstream import and names
any this page doesn't cover yet (docs/spec/SPEC.md §2.2). The fork's own code,
and Rust crates pulled in as dependencies, aren't listed here: dependencies
carry their own license files.
Under the MIT license
| Where | From | Notice |
|---|---|---|
crates/common/src/scripts/functions/text.rs |
levenshtein-rs | Copyright (c) 2016 Titus Wormer [email protected] |
crates/common/src/telemetry/tracers/journald.rs |
the journald snippet | Copyright (c) 2018 Benjamin Saunders [email protected] |
crates/jmap/src/registry/mapping/log.rs |
rev_lines | Copyright (c) 2017 Michael Coyne [email protected] |
crates/imap-proto/src/utf7.rs |
MailKit, by Jeffrey Stedfast | Copyright (C) 2013-2026 .NET Foundation and Contributors |
crates/nlp/src/tokenizers/japanese.rs |
rust-tinysegmenter | Copyright (c) 2015 woxtu |
crates/store/src/backend/postgres/tls.rs |
tokio-postgres-rustls | Copyright (c) 2019 Jasper Hugo |
crates/common/src/network/acme/directory.rs, crates/common/src/network/acme/jose.rs, crates/common/src/network/acme/order.rs |
rustls-acme (MIT or Apache-2.0) | Copyright (c) Florian Uekermann |
crates/types/src/id.rs |
crockford (MIT or Apache-2.0) | Copyright (c) 2017 J/A [email protected] |
crates/nlp/src/tokenizers/types.rs |
test cases from linkify (MIT or Apache-2.0) | Copyright (c) 2017 Robin Stocker |
resources/spam-filter/spam-filter-rules.json.gz |
the published rules of spam-filter v3.0.2, unmodified, built into the server as its default spam rules (MIT or Apache-2.0) | Copyright (C) 2024, Stalwart Labs LLC |
Each notice above applies with this permission notice:
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Under the BSD 3-Clause license
| Where | From | Notice |
|---|---|---|
crates/jmap-proto/src/types/date.rs, crates/registry/src/types/datetime.rs |
upb, the date parsing marked in each file | Copyright (c) 2009-2011, Google Inc. All rights reserved. |
Copyright (c) 2009-2011, Google Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of Google Inc. nor the names of any other
contributors may be used to endorse or promote products
derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY GOOGLE INC. ``AS IS'' AND ANY EXPRESS OR IMPLIED
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
EVENT SHALL GOOGLE INC. BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
Credited algorithms
These files implement published algorithms and credit their source. No code is copied, so there's no notice to carry. They're listed so the strip report doesn't flag them as new.
crates/jmap-proto/src/types/date.rs,crates/registry/src/types/datetime.rs:civil_from_days, from Howard Hinnant's date algorithmscrates/utils/src/glob.rs: Russ Cox's glob matching