Results 1 to 2 of 2

Thread: override display of attachments?

  1. #1
    Join Date
    Oct 2005
    Emeryville, CA US
    Rep Power

    Default override display of attachments?

    I would like to override the default way that attachments are rendered. The code appears to be in ZmMailMsgView.prototype._getAttachmentHtml. I think I have to work on the ZmMailMsgView instance, though, not the prototype, right? I know how to get to the ZmMailMsgView instance, so I tried this but it didn't appear to do anything:

    var msgView = ...; // get the instance here
    msgView._oldGetAttachmentHtml = msgView._getAttachmentHtml;
    msgView._getAttachmentHtml = function(msg, htmlArr, idx) {
    alert('idx == ' + idx);
    return msgView._oldGetAttachmentHtml(msg, htmlArr, idx);

    I put that code in an init() of a Zimlet but when I view a message that has attachments I don't see the alert I expect. Does anyone have any info on how to do something like this?

  2. #2
    Join Date
    Aug 2005
    San Mateo, CA
    Rep Power


    Which version of the code are you looking at? I'm looking at 4.0 and I think the method you want is called: ZmMailMsgView.prototype._setAttachmentLinks
    Looking for new beta users -> Co-Founder of Acompli. Previously worked at Zimbra (and Yahoo! & VMware) since 2005.

Similar Threads

  1. Attachments Getting Munged
    By taliskar in forum Administrators
    Replies: 36
    Last Post: 09-02-2010, 09:05 AM
  2. Removing display name from sent mail
    By Irazmus in forum Zimbra in Education
    Replies: 2
    Last Post: 05-02-2007, 02:56 AM
  3. Inline attachments won't display in web UI
    By feralcoder in forum Users
    Replies: 2
    Last Post: 03-31-2007, 11:01 AM
  4. Drag email to calendar and attachments
    By Richard in forum Users
    Replies: 2
    Last Post: 09-14-2006, 12:09 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts