Email Spam Classifier

One call, three typed questions. Jev returns probabilities; your code decides.

State
Questions
is_spamnoul
Is this email spam or a phishing attempt?
folderchoice
Which folder should this email be filed in?
inboxpromotionsspam
suspicionscore
How suspicious are the sender, links and language of this email?
0 · Nothing suspicious1 · Mildly suspicious (odd sender or wording)2 · Clearly suspicious (pressure tactics, unknown links)3 · Obvious phishing or scam