pub(crate) fn label(
s: &Session,
dirs: &Dirs,
message: &str,
label: Label,
moving: bool,
) -> Result<Report, String>Expand description
Says a message is spam or not: a line in this device’s label log, as
the window’s Spam and Not spam write it, which every device and the next
training read. With moving, the window’s act itself, on the server:
the keyword, and the move (“Spam” into the Junk folder; “Not spam” out
of it, back to the inbox). A message no longer stored here, named by its
Message-ID, is labelled by its place in the corpus (never moved).