Index: realname.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/realname/realname.module,v
retrieving revision 1.4.4.23
diff -u -r1.4.4.23 realname.module
--- realname.module	13 Nov 2008 17:03:39 -0000	1.4.4.23
+++ realname.module	21 Nov 2008 19:03:44 -0000
@@ -166,6 +166,20 @@
 }
 
 /**
+ * Implementation of hook_mail_alter().
+ * Intercepts the user activation form to show the username.
+ */
+function realname_mail_alter(&$message) {
+  switch ($message['id']) {
+    case 'user_status_activated':
+      // Look for the "username: " string which precedes the username.
+      if (isset($message['params']['account']->realname_save)) {
+        $message['body'][0] = str_replace(t('username: '). $message['params']['account']->name, t('username: '). $message['params']['account']->realname_save, $message['body'][0]);
+      }
+  }
+}
+
+/**
  * Implementation of hook_form_alter().
  * Intercepts the contact forms to show the realname.
  */
 
