On Thu, 9 Oct 2008, Michael M Slusarz wrote:

There is a default viewer already. The code in MIME_Contents just checks for it and if it is being used, doesn't display a linked name. You can alter this behavior by removing the '**' line below:

      /* Name/text part column. */
      if (!$this->_links ||
          (!$attachment && empty($bytes))  ||
          !isset($this->_viewID['view']) ||
**          is_a($viewer, 'MIME_Viewer_default')) {
          $summary[] = htmlspecialchars($description);
      } else {
$summary[] = $this->linkViewJS($mime_part, $this->_viewID['view'], htmlspecialchars($description), sprintf(_("View %s [%s]"), $description, $mime_type), null, $param_array);
      }

This appears on line 985 in the current HEAD version of framework/MIME/MIME/Contents.php

Excellent, I'm halfway there.  Thanks!

Now I need to disable MIME Viewers for other types.  I tried just
commenting out, e.g., the 'ooo' viewer from the
$mime_drivers_map['horde']['registered'] array.  That appeared only to
change the icon next to .sxw (and other) attachments, but not the
behavior; those attachments are still rendered inline.

What am I missing?

Chris St. Pierre
Unix Systems Administrator
Nebraska Wesleyan University

--
IMP mailing list - Join the hunt: http://horde.org/bounties/#imp
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: [EMAIL PROTECTED]

Reply via email to