'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,
'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?
$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));
}
/* Show attachment information in headers? */
- if (!empty($atc_parts) && ($show_parts != 'none')) {
+ if (!empty($atc_parts)) {
$tmp = '';
if ($show_parts == 'all') {
}
/* Show attachment information in headers? */
-if (!empty($atc_parts) && ($show_parts != 'none')) {
+if (!empty($atc_parts)) {
$tmp = array();
if ($show_parts == 'all') {