//compile 0a1a5a5d8ee6affa8ab79b4be4d87ea8
/* change message icon for ics attachments */
function plugin_calendar_insertrow(data) {
  var ctype = data.row.ctype;
  var message = rcmail.env.messages[data.row.uid];
  if(ctype == 'text/calendar' || (message.flags && message.flags.ics)) {
    $('#rcmrow'+data.uid+' > td.attachment').html('<img src="'+rcmail.env.ics_icon+'" alt="">');
  }
}

$(document).ready(function(){
  if(window.rcmail && rcmail.gui_objects.messagelist) {
    rcmail.addEventListener('insertrow', function(data, evt) {
      plugin_calendar_insertrow(data);
    });
  }
});