If I go to Account > Spam Samples I find a list of Spam Training Samples where the “Is Spam" property seems to be almost randomly assigned.
Is this feature not yet fully implemented, or how is it supposed to work?
The expectation would be that the “Is Spam” column can be toggled to reflect the way a message should actually be classified.
When I click on a message in the list, I get to a page labeled “Edit sample", but there, too, nothing is editable, the only thing one can do, is likely delete the message altogether, whereby it’s not clear if that deletes the message from spam training or from the mailbox or what.
If the functionality isn’t completely implemented yet, no problem. But if that’s the actual implementation as it’s supposed to be, it’s highly confusing and counterintuitive.
I understand that topics in this category are triaged by a bot first but a human reply will follow up. If I’d prefer a human-only reply, I’ll add the no-ai tag to my topic.
Based on the schema, isSpam is defined as read‑only on the SpamTrainingSample object, so it isn’t supposed to be editable from the “Edit sample” page, this matches what you’re seeing. The intended workflow is:
Samples are added automatically (not hand curated) from several sources: when a user explicitly moves a message to/from Junk, when auto‑learning triggers fire (e.g. a message from a sender in the recipient’s address book, a trusted sender, or a DNSBL‑flagged sender), or when an admin bulk‑uploads labelled messages. The isSpam label reflects how the sample was classified when it was captured, not a value you’re meant to toggle after the fact.
Because several different automatic‑learning heuristics (address book, trusted senders, DNSBL hits, etc.) can add samples, the mix of ham/spam entries in the list can look inconsistent with a glance at the subject/sender, even though each entry was labeled correctly at the time it was generated.
The “delete” action on a sample only removes that SpamTrainingSample record (i.e. it stops being used for classifier training), it does not touch the original mailbox message, which lives separately and is only referenced via blobId.
So the current behavior (read‑only label, delete-only editing) is the intended design, not a missing feature, the label isn’t meant to be corrected in place; if a sample is mislabeled you’d just delete it so it’s excluded from the next training run.
Ok, then I suggest renaming the field to something like “was recognized as spam”.
Then that makes it clear: being in the list means it’s used to teach what is spam, and the marker show what the current training already caught.
With the current label, it suggests the list trains ham and spam, and the user wonders why he can’t change the classification of something that seems to be classified as ham to spam.
The column is the label the classifier learns from: “Yes” rows teach it what spam looks like, “No” rows teach it what legitimate mail (ham) looks like. So the list does train both, and a sample marked “No” says nothing about how that message was scored when it arrived.
Samples are created when someone moves a message into or out of Junk (or sets $Junk/$NotJunk), by automatic learning from spam traps and blocklists, and as ham when messages are uploaded into the Inbox over IMAP, which is what a migration or an import does. That last one usually explains a long list of “No” entries that look random.
A sample can’t be edited because it records one of those decisions. If one is wrong, delete it; that removes only the training sample, not the message in the mailbox. Moving the message to the right folder then creates a sample with the correct label. The whole flow is described here: Training | Stalwart