If there are no mails scanned, rspamc does not output the dict "actions", hence the check fails.
Added test for existing "actions" section in info.
Additionally, if there are no mails scanned, "total" remains 0, which fails the rate calculation later (division by zero).
If there are no mails scanned, rspamc does not output the dict "actions", hence the check fails. Added test for existing "actions" section in info. Additionally, if there are no mails scanned, "total" remains 0, which fails the rate calculation later (division by zero).
Added pull request #70