Changeset 166b615 in github


Ignore:
Timestamp:
Jun 14, 2008 2:09:53 PM (5 years ago)
Author:
alecpl <alec@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
892ca06
Parents:
ed42ff1
Message:
  • Added option to disable displaying of attached images below the message body
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • CHANGELOG

    rf0d4b72 r166b615  
    11CHANGELOG RoundCube Webmail 
    22--------------------------- 
     3 
     42008/06/14 (alec) 
     5---------- 
     6- Added option to disable displaying of attached images below the message body 
    37 
    482008/06/13 (alec) 
  • config/main.inc.php.dist

    r712b30d r166b615  
    299299$rcmail_config['enable_installer'] = false; 
    300300 
    301 /***** these settings can be overwritten by user's preferences *****/ 
    302  
    303 // show up to X items in list view 
    304 $rcmail_config['pagesize'] = 40; 
    305  
    306 // use this timezone to display date/time 
    307 $rcmail_config['timezone'] = intval(date('O'))/100 - date('I'); 
    308  
    309 // is daylight saving On? 
    310 $rcmail_config['dst_active'] = (bool)date('I'); 
    311  
    312 // prefer displaying HTML messages 
    313 $rcmail_config['prefer_html'] = TRUE; 
    314  
    315 // display images in mail from known senders 
    316 $rcmail_config['addrbook_show_images'] = FALSE; 
    317  
    318 // compose html formatted messages by default 
    319 $rcmail_config['htmleditor'] = FALSE; 
    320  
    321 // show pretty dates as standard 
    322 $rcmail_config['prettydate'] = TRUE; 
    323  
    324 // save compose message every 300 seconds (5min) 
    325 $rcmail_config['draft_autosave'] = 300; 
    326  
    327 // default setting if preview pane is enabled 
    328 $rcmail_config['preview_pane'] = FALSE; 
    329  
    330 // Clear Trash on logout 
    331 $rcmail_config['logout_purge'] = FALSE; 
    332  
    333 // Compact INBOX on logout 
    334 $rcmail_config['logout_expunge'] = FALSE; 
     301// Log successful logins 
     302$rcmail_config['log_logins'] = false; 
    335303 
    336304/** 
     
    346314$rcmail_config['delete_always'] = false; 
    347315 
    348 // Log successful logins 
    349 $rcmail_config['log_logins'] = false; 
     316/***** these settings can be overwritten by user's preferences *****/ 
     317 
     318// show up to X items in list view 
     319$rcmail_config['pagesize'] = 40; 
     320 
     321// use this timezone to display date/time 
     322$rcmail_config['timezone'] = intval(date('O'))/100 - date('I'); 
     323 
     324// is daylight saving On? 
     325$rcmail_config['dst_active'] = (bool)date('I'); 
     326 
     327// prefer displaying HTML messages 
     328$rcmail_config['prefer_html'] = TRUE; 
     329 
     330// display images in mail from known senders 
     331$rcmail_config['addrbook_show_images'] = FALSE; 
     332 
     333// compose html formatted messages by default 
     334$rcmail_config['htmleditor'] = FALSE; 
     335 
     336// show pretty dates as standard 
     337$rcmail_config['prettydate'] = TRUE; 
     338 
     339// save compose message every 300 seconds (5min) 
     340$rcmail_config['draft_autosave'] = 300; 
     341 
     342// default setting if preview pane is enabled 
     343$rcmail_config['preview_pane'] = FALSE; 
     344 
     345// Clear Trash on logout 
     346$rcmail_config['logout_purge'] = FALSE; 
     347 
     348// Compact INBOX on logout 
     349$rcmail_config['logout_expunge'] = FALSE; 
     350 
     351// Display attached images below the message body  
     352$rcmail_config['inline_images'] = TRUE; 
    350353 
    351354// end of config file 
  • program/localization/en_US/labels.inc

    r62e43d2 r166b615  
    264264$labels['readwhendeleted'] = 'Mark the message as read on delete'; 
    265265$labels['flagfordeletion'] = 'Flag the message for deletion instead of delete'; 
    266  
     266$labels['showinlineimages'] = 'Display attached images below the message'; 
    267267$labels['autosavedraft']  = 'Automatically save draft'; 
    268268$labels['everynminutes']  = 'every $n minutes'; 
  • program/localization/pl_PL/labels.inc

    rf0d4b72 r166b615  
    6161$labels['showknownimages'] = 'Wyświetlaj obrazki od znanych nadawców'; 
    6262$labels['prettydate'] = 'Ładne daty'; 
     63$labels['showinlineimages'] = 'Wyświetlaj załĠ
     64czone obrazki pod treściÄ 
     65 wiadomości'; 
    6366$labels['messagesdisplaying'] = 'Wyświetlanie wiadomości'; 
    6467$labels['messagescomposition'] = 'Tworzenie wiadomości'; 
  • program/steps/mail/func.inc

    r83a7636 r166b615  
    746746  $ctype_primary = strtolower($MESSAGE->structure->ctype_primary); 
    747747  $ctype_secondary = strtolower($MESSAGE->structure->ctype_secondary); 
    748    
     748 
    749749  // list images after mail body 
    750   if (get_boolean($attrib['showimages']) && $ctype_primary == 'multipart' && 
    751       !empty($MESSAGE->attachments) && !strstr($message_body, '<html')) { 
     750  if (get_boolean($attrib['showimages'])  
     751        && $CONFIG['inline_images'] 
     752        && $ctype_primary == 'multipart' 
     753        && !empty($MESSAGE->attachments)  
     754        && !strstr($message_body, '<html')) 
     755    { 
    752756    foreach ($MESSAGE->attachments as $attach_prop) { 
    753757      if (strpos($attach_prop->mimetype, 'image/') === 0) { 
  • program/steps/settings/func.inc

    rf0d4b72 r166b615  
    201201    } 
    202202 
     203  if (!isset($no_override['inline_images'])) 
     204    { 
     205    $field_id = 'rcmfd_inline_images'; 
     206    $input_inline_images = new html_checkbox(array('name' => '_inline_images', 'id' => $field_id, 'value' => 1)); 
     207 
     208    $out .= sprintf("<tr><td class=\"title\"><label for=\"%s\">%s</label></td><td>%s</td></tr>\n", 
     209                    $field_id, 
     210                    Q(rcube_label('showinlineimages')), 
     211                    $input_inline_images->show($config['inline_images']?1:0)); 
     212    } 
     213 
    203214  $out .= "</table></fieldset>\n<fieldset><legend>" . Q(rcube_label('messagescomposition')) . "</legend>\n<table" . $attrib_str . ">\n\n"; 
    204215 
  • program/steps/settings/save_prefs.inc

    r712b30d r166b615  
    2828  'addrbook_show_images' => isset($_POST['_addrbook_show_images']) ? TRUE : FALSE, 
    2929  'htmleditor'   => isset($_POST['_htmleditor']) ? TRUE : FALSE, 
     30  'inline_images'   => isset($_POST['_inline_images']) ? TRUE : FALSE, 
    3031  'preview_pane' => isset($_POST['_preview_pane']) ? TRUE : FALSE, 
    3132  'read_when_deleted' => isset($_POST['_read_when_deleted']) ? TRUE : FALSE, 
Note: See TracChangeset for help on using the changeset viewer.