If for some reason the advance_notices.pl script fails to run/crashes.
It is very handy to be able to run it in a previous point in time.
This feature improves the cronjob so we can run it any day in the past or future.
This patch also introduces an exclusion feature to not run some day-differences.
For ex. If the cronjob failed yesterday, and today the DUE-message is already generated, there is no point in generating PREDUE-messages from yesterday for those issues that expired and got notified today.
If the cronjob failed many days ago playing with the exclusion days a bit trickier and requires careful testing, but it helps repair damage from unrealiable cronjobs.
Created attachment 31616 [details] [review]
Bug 12924 - Replay advance_notices.pl-cronjob in history
Same idea as bug 11120 (for overdue_notices.pl).