<% provide :title, "Deliver new inbound email" %>

<h1>All inbound emails</h1>

<%= link_to "New inbound email by form", main_app.new_rails_conductor_inbound_email_path %> |
<%= link_to "New inbound email by source", main_app.new_rails_conductor_inbound_email_source_path %>

<table>
  <tr><th>Message ID</th><th>Status</th></tr>
  <% @inbound_emails.each do |inbound_email| %>
    <tr>
      <td><%= link_to inbound_email.message_id, main_app.rails_conductor_inbound_email_path(inbound_email) %></td>
      <td><%= inbound_email.status %></td>
    </tr>
  <% end %>
</table>
