Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Zimlets

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-23-2010, 07:05 AM
Junior Member
 
Posts: 5
Default colored email per domain

I installed coloredemail zimlet an it's really cool; it would be nice to be able to set a color not only for individual email address but also for generic domain (e.g. *@acme.com) so that all email address of that domain get the same color
Reply With Quote
  #2 (permalink)  
Old 01-23-2010, 12:14 PM
Moderator
 
Posts: 7,929
Default

Welcome to the forums

Feel free to expand the tar archive and modify it to your preference.
__________________
Reply With Quote
  #3 (permalink)  
Old 01-23-2010, 07:49 PM
Elite Member
 
Posts: 338
Default

that's a good idea. will you develope that function? I'll wait to use your product
Reply With Quote
  #4 (permalink)  
Old 01-23-2010, 07:52 PM
Moderator
 
Posts: 7,929
Default

I meant why not yourself give it a go you can then feed it back to the community
__________________
Reply With Quote
  #5 (permalink)  
Old 01-25-2010, 12:20 AM
Junior Member
 
Posts: 5
Default

I'm not a javascript expert expecially about zimlets, but I can try; it would be nice if someone could put me in the right direction
Reply With Quote
  #6 (permalink)  
Old 01-25-2010, 02:07 AM
Junior Member
 
Posts: 5
Default

I did it ! at line 187 insert the following lines and that's it:

Code:
        // if not found a specific address try to search for the domain (including @)
        var emlparts = eml.split("@");
        var colors = this._cEmail_manualAddedEmailsArray["@" + emlparts[1]];
        if (colors) {
                return colors;
        }
To let the user know it's possible to use domain, at line 305 change the line with:

Code:
        html[i++] = "<TR><TD width='24%'>Email, domain (with @) or Tag name:</TD>";
I hope this could be helpful to others.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.