mod_firewall: Update user marks to store instantly via map store
The original approach was to keep marks in memory only, and persist them at
shutdown. That saves I/O, at the cost of potentially losing marks on an
unclean shutdown.
This change persists marks instantly, which may have some performance overhead
but should be more "correct".
It also splits the marking/unmarking into an event which may be watched or
even fired by other modules.
Description
===========
This module lists those users, who haven't used their account in a
defined time-frame.
Dependencies
============
[mod_lastlog] must be enabled to collect the data used by this module.
Usage
=====
prosodyctl mod_list_inactive example.com time [format]
Time is a number followed by 'day', 'week', 'month' or 'year'
Formats are:
--------- ------------------------------------------------
delete `user:delete"user@example.com" -- last action`
default `user@example.com`
event `user@example.com last action`
--------- ------------------------------------------------
Example
=======
prosodyctl mod_list_inactive example.com 1year
Help
====
prosodyctl mod_list_inactive