learn_spam feeds the message into Rspamd's statistical classifier so future similar mail scores higher. Feed a few dozen clearly labeled samples for the filter to be effective. The learned state lives in Redis, so it survives rspamd restarts.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.