Roundcube Mail - Addons


Favico

posted Feb 17, 2011, 3:54 PM by Chris Franklin   [ updated Feb 17, 2011, 7:25 PM ]

About

Favico is simple plugin that adds a new column in the message list that shows either the remote servers current favicon OR if that can't be found/loaded it try to load a local "version" of a favicon for that domain/domain extension. Although if either of those can be found a "unknown" icon is used.



How it works

  1. create a containter DIV 
  2. create 1 new div per the fallowing
    1. remote current favicon (with www added to the senders domain example:www.nomadcf.com)
    2. remote current favicon (using plain senders domain example:nomadcf.com)
    3. current local image:nomadcf.com
    4. current local extension image example:.com 
    5. unknown/not found image
  3. stack the images in the order that we prefer the users to see (current remote,local,domain extension,not found)
  4. set the container DIV position to relative   
  5. set all other DIVs to static and tell all of them to consum the same "space". 
  6. each DIV has the style tag background URL to the image we want. This means IF the image can't be loaded. It'll just be "transparent". 


1-1 of 1