[pmwiki-users] Duplicate email notification
Petko Yotov
5ko at 5ko.fr
Wed Feb 13 11:58:51 CST 2008
On Wednesday 13 February 2008, Hans wrote:
>
> Randy's problem was that he got duplicates of the same notification.
> After a lengthy investigation we found that a change in notify.php
> would stop that behaviour:
>
> changing this in notify.php:
>
> ## check if we need to do notifications
> if ($action != 'edit') NotifyCheck($pagename);
>
> to this:
>
> ## check if we need to do notifications
> if ($action!='edit' && $action!='foxpost' && $action!='foxdelete'
> && $action!='comment')
> NotifyCheck($pagename);
>
> Then Fox and Commentboxplus will not generate a NotifyCheck.
> and he had the problem of duplicates specifically with fox and
> commentboxplus postings, which use the actions included above.
Hey wait a minute!! Don't search what changes in PmWiki core would serve your
recipes, try to adapt your code instead. PmWiki has countless possibilities
to do this.
In the current case: there is yet no need to change notify.php. You can
instead have in config.php:
if($action!='foxpost'
&& $action!='foxdelete' && $action!='comment')
{
$EnableNotify = 1;
}
Petko
More information about the pmwiki-users
mailing list