Extension:EmailDiff

The EmailDiff extension modifies outgoing notification emails by providing a text diff of all changes made. This enables you to see the changes without having to leave your mail editor.

Download
Download the extension tarball, then untar it to your extensions directory.

Update LocalSettings.php
Add the following line to your LocalSettings.php:

Install the hook
A new hook will need to be added to the file includes/mail/EmailNotification.php

Inside the function sendPersonalized, right before the "return" line, add:

Hooks::run( 'SendPersonalizedNotificationEmail',   [ $watchingUser, $this->oldid, $this->title, &$headers, &$this->subject, &$body ] );

Configuration parameters
If you need to change these, add them to your LocalSettings.php after the wfLoadExtension command above:


 * $wgEmailDiffSubjectSuffix
 * String to be added to the end of the subject line. Defaults to  (diff)


 * $wgEmailDiffCommand
 * Command to perform the diff. Seldom needs to be changed from the default.