{ defaultFormatting = "longFormatting"; shortFormatting = { // prefixString = "
"; // suffixString = "
"; children = ( { string = "πŸ‘₯ "; // πŸ‘€ ifExists = "#recipient.split.#correspondent"; }, { formatString = "${#signed:+βœ“}"; suffix = { string = " "; }; singleClick = { selector = "showDetails:"; }; toolTip = { formatString = "This message is signed."; }; }, { formatString = "${#encrypted:+πŸ”’}"; suffix = { string = " "; }; singleClick = { selector = "showDetails:"; }; toolTip = { formatString = "This message is encrypted."; }; }, { separatorString = ""; sharedPrefix = "##tags.tag"; suffixString = " "; children = ( { formatString = "${##tags.tag.#shortname}"; escapeHTML = 1; singleClick = { titleFormatting = { prefixString = "Tagged "; formatString = "β€œ${##tags.tag.#name}”"; }; queryFormatting = { formatString = "##tags.tag = '${##tags.tag}'"; escapeSingleQuotes = 1; }; }; copyValues = ( { title = ''; valueFormatting = { formatString = '${##tags.tag.#name}'; }; }, { titleFormatting = 'Server Keyword (${##tags.tag})'; valueFormatting = { formatString = '${##tags.tag}'; }; }, ); }, ); }, { string = "β€œ"; }, { formatString = "${subject.prefix}"; escapeHTML = 1; suffix = { string = " "; }; // link stuff }, { prefix = { string = "["; }; formatString = "${subject.list-tag}"; escapeHTML = 1; suffix = { string = "] "; }; singleClick = { titleFormatting = { prefixString = "Related to "; formatString = "${list-id.identifier:?β€œ${list-id.identifier}”:[${subject.list-tag}]}"; }; queryFormatting = { formatString = "${list-id.identifier:?list-id.identifier = '${list-id.identifier}':subject.list-tag = '${subject.list-tag}'}"; escapeSingleQuotes = 1; }; }; copyValues = ( { title = ''; valueFormatting = { formatString = '${subject}'; }; }, { title = 'List Tag Only'; valueFormatting = { formatString = '${subject.list-tag}'; }; }, ); }, { prefix = { string = "["; }; formatString = "${subject.topic-tag}"; escapeHTML = 1; suffix = { string = "] "; }; singleClick = { titleFormatting = { prefixString = "Related to "; formatString = "${list-id.identifier:?β€œ${list-id.identifier}”:[${subject.topic-tag}]}"; }; queryFormatting = { formatString = "${list-id.identifier:?list-id.identifier = '${list-id.identifier}':subject.topic-tag = '${subject.topic-tag}'}"; escapeSingleQuotes = 1; }; }; copyValues = ( { title = ''; valueFormatting = { formatString = '${subject}'; }; }, { title = 'Topic Tag Only'; valueFormatting = { formatString = '${subject.topic-tag}'; }; }, ); }, { formatString = "${subject.body}"; escapeHTML = 1; singleClick = { titleFormatting = { prefixString = "Related to "; formatString = "β€œ${subject.body}”"; }; queryFormatting = { formatString = "subject.body = '${subject.body}'"; escapeSingleQuotes = 1; }; }; copyValues = ( { title = ''; valueFormatting = { formatString = '${subject}'; }; }, { title = 'Without Prefix'; valueFormatting = { formatString = '${subject.body}'; }; }, ); }, { string = "”"; }, { prefix = { prefixString = " "; suffixString = " "; string = "from"; fontStyle = bold; color = '#777777'; }; formatString = "${from.name.#nospoof:${from.address}}"; escapeHTML = 1; placeholderString = "Unknown"; // fontStyle = bold; singleClick = { titleImage = "NSUser"; titleFormatting = { prefixString = "From "; formatString = "β€œ${from.address}”"; }; queryFormatting = { formatString = "from.address = '${from.address}'"; separatorString = " or "; escapeSingleQuotes = 1; }; }; toolTip = { formatString = "${from}"; }; copyValues = ( { title = ''; valueFormatting = { formatString = '${from.name:+${from.name} <${from.address}>}'; }; }, { title = 'Address Only'; valueFormatting = { formatString = '${from.address}'; }; }, { title = 'Name Only'; valueFormatting = { formatString = '${from.name}'; }; }, ); isAddress = :true; relatedSearches = ( { titleImage = "NSUser"; titleFormatting = { formatString = "From β€œ${from.address}”"; }; queryFormatting = { formatString = "from.address = '${from.address}'"; escapeSingleQuotes = 1; }; }, { titleImage = "NSUser"; titleFormatting = { formatString = "From β€œ${from.name}”"; }; queryFormatting = { formatString = "from.name = '${from.name}'"; escapeSingleQuotes = 1; }; }, ); }, { prefix = { string = " (via "; }; suffix = { string = ")"; }; formatString = "${resent-from.name.#nospoof:${resent-from.address}}"; escapeHTML = 1; singleClick = { titleImage = "NSUser"; titleFormatting = { prefixString = "Resent from "; formatString = "β€œ${resent-from.address}”"; }; queryFormatting = { formatString = "resent-from.address = '${resent-from.address}'"; separatorString = " or "; escapeSingleQuotes = 1; }; }; toolTip = { formatString = "${resent-from}"; }; copyValues = ( { title = ''; valueFormatting = { formatString = '${resent-from.name:+${resent-from.name} <${resent-from.address}>}'; }; }, { title = 'Address Only'; valueFormatting = { formatString = '${resent-from.address}'; }; }, { title = 'Name Only'; valueFormatting = { formatString = '${resent-from.name}'; }; }, ); isAddress = :true; relatedSearches = ( { titleImage = "NSUser"; titleFormatting = { formatString = "Resent from β€œ${resent-from.address}”"; }; queryFormatting = { formatString = "resent-from.address = '${resent-from.address}'"; escapeSingleQuotes = 1; }; }, { titleImage = "NSUser"; titleFormatting = { formatString = "Resent from β€œ${resent-from.name}”"; }; queryFormatting = { formatString = "resent-from.name = '${resent-from.name}'"; escapeSingleQuotes = 1; }; }, ); }, { prefix = { string = ", "; }; formatString = "${#date.#relative}"; singleClick = { titleFormatting = { prefixString = "Date is "; formatString = "β€œ${#date.day}”"; }; queryFormatting = { formatString = "#date.day = '${#date.day}'"; escapeSingleQuotes = 1; }; }; toolTip = { formatDates = 1; formatString = "${#date-received}"; }; }, { prefix = { string = " written in "; fontStyle = bold; color = '#777777'; }; formatString = "${#mailer.name}"; escapeHTML = 1; singleClick = { titleFormatting = { prefixString = "Mailer is "; formatString = "'${#mailer.name}'"; }; queryFormatting = { formatString = "#mailer.name = '${#mailer.name}'"; escapeSingleQuotes = 1; }; }; toolTip = { formatString = "${#mailer}"; }; }, ); }; longFormatting = { separator = { string = "\n"; }; placeholderString = "(No headers found)"; // There is a lot of redundancy in the following. Need some way to simplify/template how this works. // For now, only Resent-From/To is displayed. // Note that this does not work well for multiple Resent headers, in particular, multiple Resent-To are hard to interpret/display. prefixString = ""; suffixString = "
"; children = ( { prefix = { string = "Resent-From:"; }; suffixString = ""; children = ( { formatString = "${resent-from.name.#nospoof}"; escapeHTML = 1; singleClick = { titleFormatting = { prefixString = "Resent from "; formatString = "β€œ${resent-from.name}”"; }; queryFormatting = { formatString = "resent-from.name = '${resent-from.name}'"; separatorString = " or "; escapeSingleQuotes = 1; }; }; }, { prefix = { formatString = "${resent-from.name:+ <}";}; formatString = "${resent-from.address}"; escapeHTML = 1; suffix = { formatString = "${resent-from.name:+>}";}; singleClick = { titleFormatting = { prefixString = "Resent from "; formatString = "β€œ${resent-from.address}”"; }; queryFormatting = { formatString = "resent-from.address = '${resent-from.address}'"; separatorString = " or "; escapeSingleQuotes = 1; }; }; }, ); copyValues = ( { title = ''; valueFormatting = { formatString = '${resent-from.name:+${resent-from.name} <${resent-from.address}>}'; }; }, { title = 'Address Only'; valueFormatting = { formatString = '${resent-from.address}'; }; }, { title = 'Name Only'; valueFormatting = { formatString = '${resent-from.name}'; }; }, ); isAddress = :true; }, { prefix = { string = "Resent-To:"; }; suffixString = ""; sharedPrefix = "resent-to"; separatorString = ", "; children = ( { formatString = "${resent-to.name.#nospoof}"; escapeHTML = 1; // Need alternative `#recipient` definition since resent addresses should not be part of `#recipient`. // Maybe an alternative which includes resents... // singleClick = // { // titleFormatting = { prefixString = "Resent to "; formatString = "β€œ${resent-to.name}”"; }; // queryFormatting = { formatString = "#recipient.name = '${resent-to.name}'"; escapeSingleQuotes = 1; }; // }; copyValues = ( { title = ''; valueFormatting = { formatString = '${resent-to.name:+${resent-to.name} <${resent-to.address}>}'; }; }, { title = 'Address Only'; valueFormatting = { formatString = '${resent-to.address}'; }; }, { title = 'Name Only'; valueFormatting = { formatString = '${resent-to.name}'; }; }, ); isAddress = :true; }, { prefix = { formatString = "${to.name:+ <}";}; formatString = "${to.address}"; escapeHTML = 1; suffix = { formatString = "${to.name:+>}";}; singleClick = { titleFormatting = { prefixString = "Resent to "; formatString = "β€œ${resent-to.address}”"; }; queryFormatting = { formatString = "#recipient.address = '${to.address}'"; escapeSingleQuotes = 1; }; }; copyValues = ( { title = ''; valueFormatting = { formatString = '${to.name:+${to.name} <${to.address}>}'; }; }, { title = 'Address Only'; valueFormatting = { formatString = '${to.address}'; }; }, { title = 'Name Only'; valueFormatting = { formatString = '${to.name}'; }; }, ); isAddress = :true; }, ); }, { prefix = { string = "From:"; }; suffixString = ""; children = ( { formatString = "${from.name.#nospoof}"; escapeHTML = 1; singleClick = { titleFormatting = { prefixString = "From "; formatString = "β€œ${from.name}”"; }; queryFormatting = { formatString = "from.name = '${from.name}'"; separatorString = " or "; escapeSingleQuotes = 1; }; }; }, { prefix = { formatString = "${from.name:+ <}";}; formatString = "${from.address}"; escapeHTML = 1; suffix = { formatString = "${from.name:+>}";}; singleClick = { titleFormatting = { prefixString = "From "; formatString = "β€œ${from.address}”"; }; queryFormatting = { formatString = "from.address = '${from.address}'"; separatorString = " or "; escapeSingleQuotes = 1; }; }; }, ); copyValues = ( { title = ''; valueFormatting = { formatString = '${from.name:+${from.name} <${from.address}>}'; }; }, { title = 'Address Only'; valueFormatting = { formatString = '${from.address}'; }; }, { title = 'Name Only'; valueFormatting = { formatString = '${from.name}'; }; }, ); isAddress = :true; }, { prefix = { string = "Subject:"; }; suffixString = ""; children = ( { formatString = "${subject.prefix}"; escapeHTML = 1; suffix = { string = " "; }; // link stuff }, { prefix = { string = "["; }; formatString = "${subject.list-tag}"; escapeHTML = 1; suffix = { string = "] "; }; singleClick = { titleFormatting = { prefixString = "Related to "; formatString = "${list-id.identifier:?β€œ${list-id.identifier}”:[${subject.list-tag}]}"; }; queryFormatting = { formatString = "${list-id.identifier:?list-id.identifier = '${list-id.identifier}':subject.list-tag = '${subject.list-tag}'}"; escapeSingleQuotes = 1; }; }; copyValues = ( { title = ''; valueFormatting = { formatString = '${subject}'; }; }, { title = 'List Tag Only'; valueFormatting = { formatString = '${subject.list-tag}'; }; }, ); }, { prefix = { string = "["; }; formatString = "${subject.topic-tag}"; escapeHTML = 1; suffix = { string = "] "; }; singleClick = { titleFormatting = { prefixString = "Related to "; formatString = "${list-id.identifier:?β€œ${list-id.identifier}”:[${subject.topic-tag}]}"; }; queryFormatting = { formatString = "${list-id.identifier:?list-id.identifier = '${list-id.identifier}':subject.topic-tag = '${subject.topic-tag}'}"; escapeSingleQuotes = 1; }; }; copyValues = ( { title = ''; valueFormatting = { formatString = '${subject}'; }; }, { title = 'Topic Tag Only'; valueFormatting = { formatString = '${subject.topic-tag}'; }; }, ); }, { formatString = "${subject.body}"; escapeHTML = 1; singleClick = { titleFormatting = { prefixString = "Related to "; formatString = "β€œ${subject.body}”"; }; queryFormatting = { formatString = "subject.body = '${subject.body}'"; escapeSingleQuotes = 1; }; }; copyValues = ( { title = ''; valueFormatting = { formatString = '${subject}'; }; }, { title = 'Without Prefix'; valueFormatting = { formatString = '${subject.body}'; }; }, ); }, ); }, { prefix = { string = "Date:"; }; suffixString = ""; formatString = "${#date.formatted}"; singleClick = { titleFormatting = { prefixString = "Date is "; formatString = "β€œ${#date.day}”"; }; queryFormatting = { formatString = "#date.day = '${#date.day}'"; escapeSingleQuotes = 1; }; }; }, { prefix = { string = "To:"; }; suffixString = ""; sharedPrefix = "to"; separatorString = ", "; limitString = " and %td more..."; children = ( { formatString = "${to.name.#nospoof}"; escapeHTML = 1; singleClick = { titleFormatting = { prefixString = "To "; formatString = "β€œ${to.name}”"; }; queryFormatting = { formatString = "#recipient.name = '${to.name}'"; escapeSingleQuotes = 1; }; }; copyValues = ( { title = ''; valueFormatting = { formatString = '${to.name:+${to.name} <${to.address}>}'; }; }, { title = 'Address Only'; valueFormatting = { formatString = '${to.address}'; }; }, { title = 'Name Only'; valueFormatting = { formatString = '${to.name}'; }; }, ); isAddress = :true; }, { prefix = { formatString = "${to.name:+ <}";}; formatString = "${to.address}"; escapeHTML = 1; suffix = { formatString = "${to.name:+>}";}; singleClick = { titleFormatting = { prefixString = "To "; formatString = "β€œ${to.address}”"; }; queryFormatting = { formatString = "#recipient.address = '${to.address}'"; escapeSingleQuotes = 1; }; }; copyValues = ( { title = ''; valueFormatting = { formatString = '${to.name:+${to.name} <${to.address}>}'; }; }, { title = 'Address Only'; valueFormatting = { formatString = '${to.address}'; }; }, { title = 'Name Only'; valueFormatting = { formatString = '${to.name}'; }; }, ); isAddress = :true; }, ); }, { prefix = { string = "Cc:"; }; suffixString = ""; sharedPrefix = "cc"; limitString = " and %td more..."; separatorString = ", "; children = ( { formatString = "${cc.name.#nospoof}"; escapeHTML = 1; singleClick = { titleFormatting = { prefixString = "To "; formatString = "β€œ${cc.name}”"; }; queryFormatting = { formatString = "#recipient.name = '${cc.name}'"; escapeSingleQuotes = 1; }; }; copyValues = ( { title = ''; valueFormatting = { formatString = '${cc.name:+${cc.name} <${cc.address}>}'; }; }, { title = 'Address Only'; valueFormatting = { formatString = '${cc.address}'; }; }, { title = 'Name Only'; valueFormatting = { formatString = '${cc.name}'; }; }, ); isAddress = :true; }, { prefix = { formatString = "${cc.name:+ <}";}; formatString = "${cc.address}"; escapeHTML = 1; suffix = { formatString = "${cc.name:+>}";}; singleClick = { titleFormatting = { prefixString = "To "; formatString = "β€œ${cc.address}”"; }; queryFormatting = { formatString = "#recipient.address = '${cc.address}'"; escapeSingleQuotes = 1; }; }; copyValues = ( { title = ''; valueFormatting = { formatString = '${cc.name:+${cc.name} <${cc.address}>}'; }; }, { title = 'Address Only'; valueFormatting = { formatString = '${cc.address}'; }; }, { title = 'Name Only'; valueFormatting = { formatString = '${cc.name}'; }; }, ); isAddress = :true; }, ); }, { prefix = { string = "Bcc:"; }; suffixString = ""; sharedPrefix = "bcc"; limitString = " and %td more..."; separatorString = ", "; children = ( { formatString = "${bcc.name.#nospoof}"; escapeHTML = 1; singleClick = { titleFormatting = { prefixString = "To "; formatString = "β€œ${bcc.name}”"; }; queryFormatting = { formatString = "#recipient.name = '${bcc.name}'"; escapeSingleQuotes = 1; }; }; copyValues = ( { title = ''; valueFormatting = { formatString = '${bcc.name:+${bcc.name} <${bcc.address}>}'; }; }, { title = 'Address Only'; valueFormatting = { formatString = '${bcc.address}'; }; }, { title = 'Name Only'; valueFormatting = { formatString = '${bcc.name}'; }; }, ); isAddress = :true; }, { prefix = { formatString = "${bcc.name:+ <}";}; formatString = "${bcc.address}"; escapeHTML = 1; suffix = { formatString = "${bcc.name:+>}";}; singleClick = { titleFormatting = { prefixString = "To "; formatString = "β€œ${bcc.address}”"; }; queryFormatting = { formatString = "#recipient.address = '${bcc.address}'"; escapeSingleQuotes = 1; }; }; copyValues = ( { title = ''; valueFormatting = { formatString = '${bcc.name:+${bcc.name} <${bcc.address}>}'; }; }, { title = 'Address Only'; valueFormatting = { formatString = '${bcc.address}'; }; }, { title = 'Name Only'; valueFormatting = { formatString = '${bcc.name}'; }; }, ); isAddress = :true; }, ); }, { prefix = { string = "Security:"; }; suffixString = ""; separatorString = " "; children = ( { // formatString = "${#encrypted:+πŸ”’Encrypted (${#security-protocol:+Unknown protocol})}"; formatString = "${#encrypted:+πŸ”’Encrypted}"; singleClick = { selector = "showDetails:"; }; toolTip = { formatString = "This message is encrypted."; }; }, { // formatString = "${#signed:+βœ“Signed (${#security-protocol:+Unknown protocol})}"; formatString = "${#signed:+βœ“Signed}"; singleClick = { selector = "showDetails:"; }; toolTip = { formatString = "This message is signed."; }; } ); }, { prefix = { string = "Tags:"; }; suffixString = ""; separatorString = " "; sharedPrefix = "##tags.tag"; children = ( { formatString = "${##tags.tag.#shortname}${##tags.tag.#name}"; escapeHTML = 1; singleClick = { titleFormatting = { prefixString = "Tagged "; formatString = "β€œ${##tags.tag.#name}”"; }; queryFormatting = { formatString = "##tags.tag = '${##tags.tag}'"; escapeSingleQuotes = 1; }; }; copyValues = ( { title = ''; valueFormatting = { formatString = '${##tags.tag.#name}'; }; }, { titleFormatting = 'Server Keyword (${##tags.tag})'; valueFormatting = { formatString = '${##tags.tag}'; }; }, ); }, ); }, ); }; allFormatting = { separator = { string = "\n"; }; placeholderString = "(No headers found)"; prefixString = ""; suffixString = "
"; template = { prefixString = "${HEADER}:"; suffixString = ""; formatString = "${HEADER}"; escapeHTML = 1; }; }; }