Hi Crawford, I noticed a small bug when the mailnotify script is called when no changes have occurred on a web. The last notification time was being reset back to 0, and then the next round in the cron would resend all the same notifications again. Here is a patch to fix the problem:
--- Mailer.pm 2007-04-24 10:13:59.000000000 -0700
+++ Mailer.pm 2007-05-03 15:01:28.000000000 -0700
@@ -204,9 +204,12 @@
$report .= _sendNewsletterMails( $twiki, $web, \%allSet);
- if( open(F, ">$notmeta" )) {
- print F $timeOfLastChange;
- close(F);
+ if($timeOfLastChange != 0)
+ {
+ if( open(F, ">$notmeta" )) {
+ print F $timeOfLastChange;
+ close(F);
+ }
}
return $report;
--
TWiki:Main.JeffCrawford
- 03 May 2007
Jeff's patch was right on the money
CC