jcppkkk / redmine_mail_reminder

Plugin for Redmine to create different role based reminders for project(s)
53 stars 32 forks source link

Don't send reminder at every run #120

Closed Angelinsky7 closed 3 years ago

Angelinsky7 commented 4 years ago

If your cron execute more than once every day, each time, the plugin will send a reminder. With this :

  1. the plugin will check the last executed date of every reminder with the current date and won't send a new email if the reminder was already send for the date.
  2. instead of updating the executed_at for each role for each mail (and don't if there is no one), the rake action will save the executed_at every time (and only once) the reminder is executed.
jcppkkk commented 3 years ago

LGTM thanks!