Remove 'none' option for 'parts_display' pref
authorMichael M Slusarz <slusarz@curecanti.org>
Wed, 2 Sep 2009 03:07:30 +0000 (21:07 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Wed, 2 Sep 2009 03:07:49 +0000 (21:07 -0600)
imp/config/prefs.php.dist
imp/lib/Views/ShowMessage.php
imp/message.php

index 11944d4..8ae0ce8 100644 (file)
@@ -909,7 +909,7 @@ $_prefs['emoticons'] = array(
     'type' => 'checkbox',
     'desc' => _("Convert textual emoticons into graphical ones?"));
 
-// how do we display message parts?
+// how do we display message parts in the summary?
 $_prefs['parts_display'] = array(
     'value' => 'atc',
     'locked' => false,
@@ -917,10 +917,9 @@ $_prefs['parts_display'] = array(
     'type' => 'enum',
     'enum' => array(
         'all' => _("Show all parts"),
-        'atc' => _("Show attachments only"),
-        'none' => _("Don't show any parts")
+        'atc' => _("Show attachments only")
     ),
-    'desc' => _("How do you want to display the parts of a message by default?"));
+    'desc' => _("Which message parts do you want to display in the summary?"));
 
 // Display custom headers (configured via the identity screen) when viewing
 // messages?
index 197535a..bf8c57a 100644 (file)
@@ -303,7 +303,8 @@ class IMP_Views_ShowMessage
             $result['msgtext'] = $imp_ui->formatStatusMsg(array('text' => array(_("There are no parts that can be shown inline."))));
         }
 
-        if (count($atc_parts) || (count($display_ids) > 2)) {
+        if (count($atc_parts) ||
+            (($show_parts == 'all') && count($display_ids) > 2)) {
             $result['atc_label'] = ($show_parts == 'all')
                 ? _("Parts")
                 : sprintf(ngettext("%d Attachment", "%d Attachments", count($atc_parts)), count($atc_parts));
@@ -313,7 +314,7 @@ class IMP_Views_ShowMessage
         }
 
         /* Show attachment information in headers? */
-        if (!empty($atc_parts) && ($show_parts != 'none')) {
+        if (!empty($atc_parts)) {
             $tmp = '';
 
             if ($show_parts == 'all') {
index 294cb1f..daecd4a 100644 (file)
@@ -672,7 +672,7 @@ if (count($display_ids) > 2) {
 }
 
 /* Show attachment information in headers? */
-if (!empty($atc_parts) && ($show_parts != 'none')) {
+if (!empty($atc_parts)) {
     $tmp = array();
 
     if ($show_parts == 'all') {