<commit_before>.page-header
  %h1 Email

%p
  %strong From:
  = link_to @email.from, emails_path(:from => @email.from)
%p
  %strong To:
  %ul
    - @email.deliveries.each do |delivery|
      %li
        = link_to delivery.address.text, emails_path(to: delivery.address.text)
        = delivered_label(delivery.delivered)

%hr
- if @email.data.nil?
  %em
    Full text of email is not available
- else
  %p
    = @email.data.gsub("\r\n", "<br\>").html_safe if @email.data
%hr
%p
  %strong Received:
  = time_ago_in_words(@email.created_at)
  ago (#{@email.created_at})

- unless @email.postfix_log_lines.empty?
  %table.table.table-condensed
    %caption Delivery Logs
    %thead
      %tr
        %th To
        %th DSN
        %th Status
    %tbody<commit_msg>Show the new data<commit_after>.page-header
  %h1 Email

%p
  %strong From:
  = link_to @email.from, emails_path(:from => @email.from)
%p
  %strong To:
  %ul
    - @email.deliveries.each do |delivery|
      %li
        = link_to delivery.address.text, emails_path(to: delivery.address.text)
        = delivered_label(delivery.delivered)

%hr
- if @email.data.nil?
  %em
    Full text of email is not available
- else
  %p
    = @email.data.gsub("\r\n", "<br\>").html_safe if @email.data
%hr
%p
  %strong Received:
  = time_ago_in_words(@email.created_at)
  ago (#{@email.created_at})
%p
  %strong Message ID:
  = @email.message_id
%p
  %strong Content hash:
  = @email.data_hash

- unless @email.postfix_log_lines.empty?
  %table.table.table-condensed
    %caption Delivery Logs
    %thead
      %tr
        %th To
        %th DSN
        %th Status
    %tbody
{'fraction_non_alphanumeric': 0.13571869216533003, 'fraction_numerical': 0.0012338062924120913, 'mean_word_length': 2.7546296296296298, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2466361', 'n_tokens_mistral': 618, 'n_tokens_neox': 609, 'n_words': 136}