? Old book page.book.txt ? README.book.txt ? cvs-release-notes.php ? listhandler.521788.patch Index: listhandler.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/listhandler/listhandler.module,v retrieving revision 1.86 diff -u -3 -r1.86 listhandler.module --- listhandler.module 19 Aug 2009 20:21:52 -0000 1.86 +++ listhandler.module 19 Aug 2009 20:26:51 -0000 @@ -123,6 +123,12 @@ '#default_value' => variable_get('listhandler_htmltotext', 0), '#options' => array(0 => t('Fancy'), 1 => t('Standard')), '#description' => t('If forums posts will be made using a WYSIWYG editor (i.e. TinyMCE) then the Fancy converter offers a more accurate convertion.')); + $form['listhandler_alwaysnewthread'] = array( + '#type' => 'radios', + '#title' => t('Email Replies'), + '#default_value' => variable_get('listhandler_alwaysnewthread', 0), + '#options' => array(0 => t('Replies as comments to original thread'), 1 => t('Replies as new threads')), + '#description' => t('Whether incoming email replies will be treated as comments, or new threads.')); $form['listhandler_list'] = array( '#tree' => TRUE, @@ -165,6 +171,7 @@ $output .= drupal_render($form['listhandler_accountstatus']); $output .= drupal_render($form['listhandler_attachments_as_link']); $output .= drupal_render($form['listhandler_htmltotext']); + $output .= drupal_render($form['listhandler_alwaysnewthread']); if (count($form['listhandler_list'])) { $rows = array(); foreach (element_children($form['listhandler_list']) as $mid) { @@ -551,6 +558,10 @@ * If all else fails, start a new forum topic. */ function listhandler_find_parent($node, $header) { + // create new thread no matter what? + if (variable_get('listhandler_alwaysnewthread', 0)) { + return listhandler_new_thread($node); + } if ($node->threading) { $parent = db_fetch_object(db_query("SELECT * FROM {listhandler} WHERE msgid = '<%s>'", $node->threading));