<div dir="ltr">Thanks, the automatic change summary recipe was helpful. I was able to use that to email the raw diff. For reference, here's what I'm doing:<div><br></div><div><div>  array_unshift($EditFunctions, 'ProvideDefaultSummary');</div>
<div>  function ProvideDefaultSummary($pagename,&$page,&$new)</div><div>  {</div><div>    global $ChangeSummary, $DiffFunction;</div><div>    if ($ChangeSummary || !function_exists(@$DiffFunction)) return;</div><div>
    $diff = $DiffFunction($new['text'], @$page['text']);</div><div>    $new['csum'] = $diff;</div><div>  }</div><div><br></div><div>  $EnableNotify = 1;</div><div>  $NotifySquelch = 0;</div><div>  $NotifyDelay   = 0;</div>
<div><br></div><div>  $NotifyList[] = 'notify=<a href="mailto:myname@mydomain.com">myname@mydomain.com</a>';</div><div>  $NotifyFrom   = '<a href="mailto:notify@mydomain.com">notify@mydomain.com</a>';</div>
<div>  $NotifySubjectFmt = '$FullName edited by $LastModifiedHost';</div><div>  $NotifyItemFmt    = "Edited \$PostTime \n\n \$PageUrl?action=diff \n\n \$LastModifiedSummary";</div><div>  $NotifyBodyFmt    = '$NotifyItems';</div>
</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Dec 23, 2012 at 12:47 AM, Petko Yotov <span dir="ltr"><<a href="mailto:5ko@5ko.fr" target="_blank">5ko@5ko.fr</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">Ryan Varick writes:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I'm using the Notify script[1] to notify me when someone anonymously edits my personal wiki. I would like to include the diff in email, but I cannot figure out how to do so. I am currently using plaintext email notifications, so I would prefer a plaintext diff, but it would also be nice to know how to send an HTML diff too.<br>

</blockquote>
<br></div>
This recipe may probably be used or adapted:<br>
<br>
  <a href="http://www.pmwiki.org/wiki/Cookbook/AutomaticChangeSummary" target="_blank">http://www.pmwiki.org/wiki/<u></u>Cookbook/<u></u>AutomaticChangeSummary</a><br>
<br>
Some stuff I use, not to include the diffs in notifications, but to more easily click on a diff link :    <br>
  <a href="http://www.pmwiki.org/wiki/Cookbook/TrackChanges" target="_blank">http://www.pmwiki.org/wiki/<u></u>Cookbook/TrackChanges</a><br>
  <a href="http://www.pmwiki.org/wiki/PITS/01171" target="_blank">http://www.pmwiki.org/wiki/<u></u>PITS/01171</a><br>
<br>
Petko<br>
<br>
<br>
______________________________<u></u>_________________<br>
pmwiki-users mailing list<br>
<a href="mailto:pmwiki-users@pmichaud.com" target="_blank">pmwiki-users@pmichaud.com</a><br>
<a href="http://www.pmichaud.com/mailman/listinfo/pmwiki-users" target="_blank">http://www.pmichaud.com/<u></u>mailman/listinfo/pmwiki-users</a><br>
</blockquote></div><br></div>