$msg['from'] = String::substr($msg['from'], 0, $conf['mimp']['mailbox']['max_from_chars']) . '...';
}
- if (!is_null($threadob) && ($threadob->getThreadIndent($ob['uid']))) {
- $msg['subject'] = '>> ' . ltrim($msg['subject']);
- }
-
- if (String::length($msg['subject']) > $conf['mimp']['mailbox']['max_subj_chars']) {
- $msg['subject'] = String::substr($msg['subject'], 0, $conf['mimp']['mailbox']['max_subj_chars']) . '...';
- }
-
/* Get flag information. */
$imp_flags = &IMP_Imap_Flags::singleton();
$flag_parse = $imp_flags->parse(array(
foreach ($flag_parse as $val) {
if (isset($val['abbrev'])) {
$msg['status'] .= $val['abbrev'];
+ } elseif ($val['type'] == 'imapp') {
+ $msg['subject'] = '*' .
+ ((String::length($val['label']) > 8)
+ ? String::substr($val['label'], 0, 5) . '...'
+ : $val['label']
+ ) .
+ '* ' . $msg['subject'];
}
}
+ if (!is_null($threadob) && ($threadob->getThreadIndent($ob['uid']))) {
+ $msg['subject'] = '>> ' . ltrim($msg['subject']);
+ }
+
+ if (String::length($msg['subject']) > $conf['mimp']['mailbox']['max_subj_chars']) {
+ $msg['subject'] = String::substr($msg['subject'], 0, $conf['mimp']['mailbox']['max_subj_chars']) . '...';
+ }
+
/* Generate the target link. */
$msg['target'] = in_array('\\draft', $ob['flags'])
? IMP::composeLink(array(), array('a' => 'd', 'thismailbox' => $imp_mbox['mailbox'], 'index' => $ob['uid'], 'bodypart' => 1))
foreach ($flag_parse as $val) {
if (isset($val['abbrev'])) {
$status .= $val['abbrev'];
+ } elseif ($val['type'] == 'imapp') {
+ if (String::length($val['label']) > 8) {
+ $status .= ' *' . String::substr($val['label'], 0, 5) . '...*';
+ } else {
+ $status .= ' *' . $val['label'] . '*';
+ }
}
}
$mimp_render->set('title', $display_headers['subject']);
-$c = &$mimp_render->add(new Horde_Mobile_card('m', $status . ' ' . $display_headers['subject'] . ' ' . sprintf(_("(%d of %d)"), $msgindex, $msgcount)));
+$c = &$mimp_render->add(new Horde_Mobile_card('m', ($status ? $status . ' | ' : '') . $display_headers['subject'] . ' ' . sprintf(_("(%d of %d)"), $msgindex, $msgcount)));
$c->softkey('#o', _("Menu"));
$imp_notify->setMobileObject($c);