import React from 'react'; import { Utils } from 'mailspring-exports'; import { InjectedComponentSet, ListTabular } from 'mailspring-component-kit'; function snippet(html) { if (!(html && typeof html === 'string')) { return ''; } try { return Utils.extractTextFromHtml(html, { maxLength: 400 }).substr(0, 200); } catch (err) { return ''; } } function subject(subj) { if ((subj || '').trim().length === 0) { return (No Subject); } return Utils.extractTextFromHtml(subj); } const ParticipantsColumn = new ListTabular.Column({ name: 'Participants', width: 200, resolver: draft => { const list = [].concat(draft.to, draft.cc, draft.bcc); if (list.length > 0) { return (