On Mon, Oct 5, 2009 at 18:53, Frank Schweickert <f.schweick...@uva.nl> wrote: > With every update of pmwiki I have to keep track of my modifications of > script/notify.php > So, maybe this suggestion can make it somehow into the official > distribution some day: > > I purge my notification messages by deleting multiple edits of the same > author at the same page, > keeping only the last edit. My way is probably not the most efficient, > but it was a quick > fix that works for me... so if anybody would like to implement something > like this (maybe as an option)...? > > I have introduced > > ########## > function dedup($var) { #fsmod: delete > earlier entries of same page and same author > global $Author, $pagename; > $aut = strpos ($var,urlencode(" {$Author}:")); > $page = strpos ($var,urlencode(" $pagename ")); > return (!$aut || !$page); > } > ########## > > and call it in function NotifyUpdate before $nnow = time(); last in > foreach($nlist as $n){...} > > ########## > foreach($mailto as $m) { > $notify[$m]=array_filter($notify[$m],"dedup"); #fsmod function > dedup above > $notify[$m][] = $item; > ########## > > > Best regards, > Frank
Hi, IMHO, your issue really deserve a PITS entry, that we could vote on. -- Dominique _______________________________________________ pmwiki-devel mailing list pmwiki-devel@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-devel