Get spam learning status
GET/api/accounts/:accountId/spam_learn
Returns how far the mailbox's personal spam filter has been trained: how many ham and spam messages it has learned (nham, nspam), how many it needs (minHam, minSpam), and whether it is ready to be used. The platform's JSON is passed through unchanged.
The request is made with the session's platform access token, so a session without one gets 401. Platform failures return 424.
Request
Responses
- 200
- 401
- 404
- 424
Training progress of the personal spam filter, as returned by the platform.
The session has no mailbox access token (code is mail_token_missing) or no platform access token.
The account does not exist or belongs to another user.
The IMAP, SMTP or Sieve server, or the platform, refused the request or could not be reached.