diff --git a/mimemail.mail_edit.inc b/mimemail.mail_edit.inc
index 4b8f431..f5b240e 100644
--- a/mimemail.mail_edit.inc
+++ b/mimemail.mail_edit.inc
@@ -49,7 +49,7 @@ function mimemail_mail_edit_text($mailkey, $language) {
   $return = array(
     'subject' => '',
     'body' => '',
-    'data' => array('plaintext' => ''),
+    'plaintext' => '',
   );
   if (isset($element->settings['subject'])) {
     $return['subject'] = $element->settings['subject'];
@@ -70,7 +70,7 @@ function mimemail_mail_edit_text($mailkey, $language) {
   }
 
   if (isset($element->settings['plaintext'])) {
-    $return['data']['plaintext'] = $element->settings['plaintext'];
+    $return['plaintext'] = $element->settings['plaintext'];
   }
   elseif (isset($element->settings['plaintext:select'])) {
     // Warn user and hide form field.
@@ -84,9 +84,9 @@ function mimemail_mail_edit_text($mailkey, $language) {
  * Implements hook_mail_edit_mail_alter_postprocess().
  */
 function mimemail_mail_edit_mail_alter_postprocess(&$message, $mailkey, $template, $data, $options) {
-  if (isset($template['data']['plaintext'])) {
+  if (isset($template['plaintext'])) {
     // Preprocess and set the plaintext.
-    $message['params']['plaintext'] = mail_edit_format($template['data']['plaintext'], $data, $options);
+    $message['params']['plaintext'] = mail_edit_format($template['plaintext'], $data, $options);
   }
 }
 
@@ -102,18 +102,12 @@ function mimemail_mail_edit_format_preprocess($text, $template, $data, &$options
  * Implements hook_mail_edit_form_extra().
  */
 function mimemail_mail_edit_form_extra(&$form, $form_state, $mailkey, $template) {
-  // Reuse rules integration to fetch the rules replacement tokens.
-  rules_mail_edit_form_extra($form, $form_state, $mailkey, $template);
-  // Add plaintext edit element if possible.
-  if (isset($template['data']['plaintext'])) {
-    $form['data']['plaintext'] = array(
-      '#title'         => t('Plain Text Body'),
-      '#type'          => 'textarea',
-      '#default_value' => $template['data']['plaintext'],
-      '#rows'          => 10,
-      '#description'   => t("The mail's message plaintext body."),
-    );
-  }
+  // Duplicating the code  of rules_mail_edit_form_extra().
+  // List rules based replacement patterns.
+  $element = _mimemail_mail_edit_get_element_by_mailkey($mailkey);
+  $form['mail']['rules_replacement_patterns'] = RulesTokenEvaluator::help($element->availableVariables());
+  $form['mail']['rules_replacement_patterns']['#title'] = t('Rules specific replacement patterns');
+  $form['mail']['rules_replacement_patterns']['#weight'] = 100;
 }
 
 /**
