5
Neither do I, as you can see from what I have found: you shouldn't hack xoopsmailer.php at all. Sorry about that.
There's this /newbb/post.php file, where the notification items are set for newbb.
Here's what lurks in there:
$notification_handler->triggerEvent('global', 0, 'new_post', $tags);
$notification_handler->triggerEvent('forum', $forum, 'new_post', $tags);
$myts =& MyTextSanitizer::getInstance();
$tags['POST_CONTENT'] = $myts->stripSlashesGPC($HTTP_POST_VARS['message']);
$tags['POST_NAME'] = $myts->stripSlashesGPC($HTTP_POST_VARS['subject']);
$notification_handler->triggerEvent('global', 0, 'new_fullpost', $tags);
So... we have to figure out how to add a X_PNAME variable that gets the poster's name.
If you have a test site, you might want to try to add this line:
[color=CC0000]$tags['X_PNAME'] = $myts->stripSlashesGPC($forumpost->uname());[/color]
between
$myts->stripSlashesGPC($HTTP_POST_VARS['subject']);
and
$notification_handler->triggerEvent('global', 0, 'new_fullpost', $tags);
, but I have no idea whether this should work or cause your server to explode, so trying this at a production site is not even remotely advisable.