tutanota/packages
das b3c2dabfa7 [antispam] Add client-side local spam filtering
Implement a local machine learning model for client-side spam filtering.
The local model is implemented using tensorflow "LayersModel" to train
separate models in all available mailboxes, resulting in one model
per ownerGroup (i.e. mailbox).

Initially, the training data is aggregated from the last 30 days of
received mails, and the data is stored in a separate offline database
table named spam_classification_training_data. The trained model is
stored in the table spam_classification_model. The initial training
starts after indexing, with periodic training happening
every 30 minutes and on each subsequent login.

The model will predict on incoming mails once we have received the
entity event for said mail, moving it to either inbox or spam folder.
When users move mails, we update the training data labels accordingly,
by adjusting the isSpam classification and isSpamConfidence values in
the offline database. The MoveMailService now contains a moveReason,
which indicates that the mail has been moved by our spam filter.

Client-side spam filtering can be activated using the
SpamClientClassification feature flag, and is for now only
available on the desktop client.

Co-authored-by: sug <sug@tutao.de>
Co-authored-by: kib <104761667+kibibytium@users.noreply.github.com>
Co-authored-by: abp <abp@tutao.de>
Co-authored-by: map <mpfau@users.noreply.github.com>
Co-authored-by: jhm <17314077+jomapp@users.noreply.github.com>
Co-authored-by: frm <frm@tutao.de>
Co-authored-by: das <das@tutao.de>
Co-authored-by: nif <nif@tutao.de>
Co-authored-by: amm <amm@tutao.de>
2025-10-14 12:32:17 +02:00
..
licc v310.251008.0 2025-10-08 15:10:33 +02:00
node-mimimi v310.251008.0 2025-10-08 15:10:33 +02:00
otest v310.251008.0 2025-10-08 15:10:33 +02:00
tuta-wasm-loader v310.251008.0 2025-10-08 15:10:33 +02:00
tutanota-crypto v310.251008.0 2025-10-08 15:10:33 +02:00
tutanota-error v310.251008.0 2025-10-08 15:10:33 +02:00
tutanota-test-utils v310.251008.0 2025-10-08 15:10:33 +02:00
tutanota-usagetests v310.251008.0 2025-10-08 15:10:33 +02:00
tutanota-utils [antispam] Add client-side local spam filtering 2025-10-14 12:32:17 +02:00