Feature - Flush email queue with CLI command

we need some way to override emails going out quicker than every hour (hourly cron), we will use a CLI command with options for:

  • flush the queue (with a limit based on the email settings)
  • flush the last X items (x is argument, last is of course from the oldest to the newest)
  • flush X specific email id (X is the id of the item on the flush)

the process is blocking, this means that it wont let run concurrent processes, you could set a cron to run every minute if you want. what happens if the CLI is run as the daily cron runs? it should not run if hourly is pending.

int ref: https://github.com/eramba/eramba_v2/issues/2554