|
Main sidebar
|
PITS /
01148Summary: option to filter duplicate entries in e-mail notification
Created: 2009-10-07 11:33
Status: Open
Category: Feature
From: Frank
Assigned:
Priority: 25
Version: 2.2.5
OS:
Description: Similar to PITS 00676, I suggest creating an option to purge notification messages by deleting multiple edits on the same page by the same author, thus keeping only the last edit. While we administor geeks sometimes do appreciate fine grained information about user-interaction: If it comes to engaging actual wiki users into editing actual non-computer-related content, citing every single edit in the notifications turns out to be counter-productive, especially as content experts tend to use multiple edits rather than the preview (and you can't enforce too many etiquette rules at once, either) The way I do it in my own version of notify.php is probably not the most efficient, but it was a quick fix that worked for me... so if anybody would like to implement something like this (maybe as an option)...? I have introduced in notify.php function dedup($var) { #delete earlier entries of same page and same author
global $Author, $pagename;
$aut = strpos ($var,urlencode(" and call it in function NotifyUpdate before foreach($mailto as $m) {
$notify[$m]=array_filter($notify[$m],"dedup");
$notify[$m][] = $item;
}
P.S. cookbook: It is already possible to include such a modified notify.php as cookbook recipe, while keeping the built-in version disabled. Frank |