<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Sorry, I have to learn my way around here at PmWiki's...<br>
<br>
Now I just learned that <a class="moz-txt-link-freetext" href="http://www.pmwiki.org/wiki/PITS/00676">http://www.pmwiki.org/wiki/PITS/00676</a><br>
was already dedicated to that feature request en it was closed by Pm.<br>
<br>
I didn't understand Pm's hint though,<br>
"It's also superceded by the new <a class="wikilink"
 href="http://www.pmwiki.org/wiki/PmWiki/Notify">PmWiki.Notify</a>
capbility."<br>
<br>
Is there anything else that I can do to promote the idea to have<br>
multiple entries weeded out?<br>
<br>
Frank<br>
<br>
<br>
<br>
Dominique Faure wrote:
<blockquote
 cite="mid:599dbcaf0910051031m6bbeadb4s943ce7ec321992c2@mail.gmail.com"
 type="cite">
  <pre wrap="">On Mon, Oct 5, 2009 at 18:53, Frank Schweickert <a class="moz-txt-link-rfc2396E" href="mailto:f.schweickert@uva.nl">&lt;f.schweickert@uva.nl&gt;</a> wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">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) { &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #fsmod: delete
earlier entries of same page and same author
&nbsp; global $Author, $pagename;
&nbsp; $aut = strpos ($var,urlencode(" {$Author}:"));
&nbsp; $page = strpos ($var,urlencode(" $pagename "));
&nbsp; return (!$aut || !$page);
&nbsp; }
##########

and call it in function NotifyUpdate before $nnow = time(); last in
foreach($nlist as $n){...}

##########
&nbsp; &nbsp;foreach($mailto as $m) {
&nbsp; &nbsp; &nbsp;$notify[$m]=array_filter($notify[$m],"dedup"); &nbsp; &nbsp; #fsmod function
dedup above
&nbsp; &nbsp; &nbsp;$notify[$m][] = $item;
##########


Best regards,
Frank
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Hi,
IMHO, your issue really deserve a PITS entry, that we could vote on.

  </pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">-- 
_______________________________________________________________________
Dr. Frank F. Schweickert
AMSTEL Institute, Faculty of Science, University of Amsterdam
Science Park 904, Amsterdam, Room C2-1.22
Postal address: Postbus 94224, 1090 GE Amsterdam
Phone: +31 20 525-8475 (secr. -5886)
<a class="moz-txt-link-freetext" href="http://www.science.uva.nl/amstel">http://www.science.uva.nl/amstel</a>
<a class="moz-txt-link-freetext" href="http://www.natsim.net">http://www.natsim.net</a></pre>
</body>
</html>