Ticket #1485012: previewnotread_r1622.patch

File previewnotread_r1622.patch, 3.4 KB (added by JohnDoh, 20 months ago)

updated for r1622

  • config/main.inc.php

    diff -Naur --exclude='*.svn*' roundcube_svn/config/main.inc.php roundcube_pub/config/main.inc.php
    old new  
    351351// Display attached images below the message body  
    352352$rcmail_config['inline_images'] = TRUE; 
    353353 
     354// Preview pane mark as read 
     355$rcmail_config['preview_pane_mark_read'] = TRUE; 
     356 
    354357// end of config file 
    355358?> 
  • program/localization/en_US/labels.inc

    diff -Naur --exclude='*.svn*' roundcube_svn/program/localization/en_US/labels.inc roundcube_pub/program/localization/en_US/labels.inc
    old new  
    292292$labels['sortasc']  = 'Sort ascending'; 
    293293$labels['sortdesc'] = 'Sort descending'; 
    294294 
     295$labels['previewpanemarkread']  = 'Mark previewed messages as read'; 
     296 
    295297?> 
  • program/steps/mail/show.inc

    diff -Naur --exclude='*.svn*' roundcube_svn/program/steps/mail/show.inc roundcube_pub/program/steps/mail/show.inc
    old new  
    6666  $OUTPUT->set_pagetitle($MESSAGE->subject); 
    6767   
    6868  // mark message as read 
    69   if (!$MESSAGE->headers->seen) 
     69  if (!$MESSAGE->headers->seen && !($RCMAIL->action == 'preview' && !$CONFIG['preview_pane_mark_read'])) 
    7070  { 
    7171    $marked = $IMAP->set_flag($MESSAGE->uid, 'SEEN'); 
    7272    if($RCMAIL->action == 'preview' && $marked != -1) 
  • program/steps/settings/func.inc

    diff -Naur --exclude='*.svn*' roundcube_svn/program/steps/settings/func.inc roundcube_pub/program/steps/settings/func.inc
    old new  
    157157    $table->add(null, $input_preview->show($config['preview_pane']?1:0)); 
    158158  } 
    159159 
     160  // show config parameter for preview pane auto mark as read 
     161  if (!isset($no_override['preview_pane_mark_read'])) { 
     162    $field_id = 'rcmfd_preview_pane_mark_read'; 
     163    $input_preview = new html_checkbox(array('name' => '_preview_pane_mark_read', 'id' => $field_id, 'value' => 1)); 
     164 
     165    $table->add('title', html::label($field_id, Q(rcube_label('previewpanemarkread')))); 
     166    $table->add(null, $input_preview->show($config['preview_pane_mark_read']?1:0)); 
     167  } 
     168 
    160169  if (!isset($no_override['mdn_requests'])) { 
    161170    $field_id = 'rcmfd_mdn_requests'; 
    162171    $select_mdn_requests = new html_select(array('name' => '_mdn_requests', 'id' => $field_id)); 
  • program/steps/settings/save_prefs.inc

    diff -Naur --exclude='*.svn*' roundcube_svn/program/steps/settings/save_prefs.inc roundcube_pub/program/steps/settings/save_prefs.inc
    old new  
    2929  'htmleditor'   => isset($_POST['_htmleditor']) ? TRUE : FALSE, 
    3030  'inline_images'   => isset($_POST['_inline_images']) ? TRUE : FALSE, 
    3131  'preview_pane' => isset($_POST['_preview_pane']) ? TRUE : FALSE, 
     32  'preview_pane_mark_read' => isset($_POST['_preview_pane_mark_read']) ? TRUE : FALSE, 
    3233  'read_when_deleted' => isset($_POST['_read_when_deleted']) ? TRUE : FALSE, 
    3334  'flag_for_deletion' => isset($_POST['_flag_for_deletion']) ? TRUE : FALSE, 
    3435  'logout_purge' => isset($_POST['_logout_purge']) ? TRUE : FALSE,