? dif
cvs diff: Diffing .
Index: mimemail.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/mimemail/mimemail.inc,v
retrieving revision 1.24
diff -u -p -r1.24 mimemail.inc
--- mimemail.inc	18 Feb 2008 00:43:36 -0000	1.24
+++ mimemail.inc	13 May 2008 16:35:00 -0000
@@ -67,8 +67,11 @@ function mimemail_headers($headers, $fro
  *
  * @return formatted text encoded in utf-8
  */
-function mimemail_html_to_text($txt, $inline = FALSE) {
+function mimemail_html_to_text($txt, $inline = NULL) {
   $pattern = '@(<a href="(.\S+?)"[^>]*>(.+?)</a>)@emi';
+  if (!isset($inline)) {
+    $inline = variable_get('mimemail_text_links', 0);
+  }
   if ($inline) {
     $txt = preg_replace($pattern, "_mimemail_uri('\\2', '\\3')", $txt);
   }
Index: mimemail.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/mimemail/mimemail.module,v
retrieving revision 1.24
diff -u -p -r1.24 mimemail.module
--- mimemail.module	1 Mar 2008 05:11:52 -0000	1.24
+++ mimemail.module	13 May 2008 16:35:00 -0000
@@ -66,6 +66,23 @@ function mimemail_settings() {
     '#description'   => t('This option disables the use of email messages with graphics and styles.  All messages will be converted to plain text.'),
   );
 
+  $form['mimemail']['textonly'] = array(
+    '#type'          => 'fieldset',
+    '#title'         => t('Text-only settings'),
+    '#collapsible'   => TRUE,
+    '#collapsed'     => !variable_get('mimemail_textonly', 0),
+  );
+  $link_options = array(
+    0 => t('Rendered as footnotes at the bottom of the message'),
+    1 => t('Included inline where they appear in the body'),
+  );
+  $form['mimemail']['textonly']['mimemail_text_links'] = array(
+    '#type'          => 'radios',
+    '#title'         => t('HTML link handling in the plain-text output'),
+    '#options'       => $link_options,
+    '#default_value' => variable_get('mimemail_text_links', 0),
+  );
+
   $form['mimemail']['incoming'] = array(
     '#type'          => 'fieldset',
     '#title'         => t('Advanced Settings'),
cvs diff: Diffing po
