* @return array See Horde_Mime_Viewer_Driver::render(). The following
* fields may also be present in addition to the fields
* defined in Horde_Mime_Viewer_Driver:
+ * 'attach' - (boolean) Force display of this part as an
+ * attachment.
* 'js' - (array) A list of javascript commands to run
* after the content is displayed on screen.
* 'name' - (string) Contains the MIME name information.
$wrap_ids[] = $mime_id;
}
- $msgtext .= $this->formatSummary($imp_contents->getSummary($id, $contents_mask), $part_info_display) .
- $this->formatStatusMsg($info['status']) .
- '<div class="mimePartData">' . $info['data'] . '</div>';
+ if (empty($info['attach'])) {
+ $msgtext .= $this->formatSummary($imp_contents->getSummary($id, $contents_mask), $part_info_display) .
+ $this->formatStatusMsg($info['status']) .
+ '<div class="mimePartData">' . $info['data'] . '</div>';
+ } else {
+ if ($show_parts == 'atc') {
+ $atc_parts[] = $id;
+ }
+
+ if ($GLOBALS['prefs']->getValue('atc_display')) {
+ $msgtext .= $this->formatSummary($imp_contents->getSummary($id, $contents_mask), $part_info_display, true);
+ }
+ }
if (isset($info['js'])) {
$js_onload = array_merge($js_onload, $info['js']);