From 1a004f112c1eddcc2a38fe682530d9b6b6083cb7 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Mon, 19 Jan 2009 21:40:41 -0700 Subject: [PATCH] Fix config param name; show MIME type for attachments. --- imp/message-mimp.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/imp/message-mimp.php b/imp/message-mimp.php index 38e434207..b1715574c 100644 --- a/imp/message-mimp.php +++ b/imp/message-mimp.php @@ -157,8 +157,8 @@ if (($subject = $mime_headers->getValue('subject'))) { $subject = IMP::filterText($subject); /* Generate the shortened subject text. */ - if (String::length($subject) > $conf['mimp']['max_subj_chars']) { - $subject = String::substr($subject, 0, $conf['mimp']['max_subj_chars']) . '...'; + if (String::length($subject) > $conf['mimp']['mailbox']['max_subj_chars']) { + $subject = String::substr($subject, 0, $conf['mimp']['mailbox']['max_subj_chars']) . '...'; } } else { $subject = _("[No Subject]"); @@ -355,7 +355,7 @@ foreach ($display_headers as $head => $val) { foreach ($atc_parts as $key) { $summary = $imp_contents->getSummary($key, IMP_Contents::SUMMARY_SIZE | IMP_Contents::SUMMARY_DESCRIP_NOLINK_NOHTMLSPECCHARS); $hb->add(new Horde_Mobile_text(_("Attachment") . ': ', array('b'))); - $t = &$hb->add(new Horde_Mobile_text(sprintf('%s %s', $summary['description'], $summary['size']) . "\n")); + $t = &$hb->add(new Horde_Mobile_text(sprintf('%s [%s] %s', $summary['description'], $summary['type'], $summary['size']) . "\n")); $t->set('linebreaks', true); } -- 2.11.0