Sha256: 1d39ded54e8502c44dcbc5c878f791735860b11e6f00e7cf4d7b1f3db2ce1753
Contents?: true
Size: 873 Bytes
Versions: 11
Compression:
Stored size: 873 Bytes
Contents
<% if email.is_a?(Mail::Message) this_part = email elsif email.length > 0 begin this_part = Mail.new(email) rescue => e %> <pre> An error occured parsing this part of the email: <%= e.message %> <%= e.backtrace.join("\n") %> </pre> <% end end%> <% unless this_part.nil? %> <hr/> <h3>Headers</h3> <pre> <%= this_part.header.inspect %> </pre> <% if this_part.header['content-type'].to_s =~ /text\/html/i %> <h3>Body Part</h3> <%= this_part.body %> <% elsif this_part.header['content-type'].to_s =~ /text\/plain|message\/delivery-status|text\/rfc822-headers/i %> <h3>Body Part</h3> <pre><%= this_part.body %></pre> <% end %> <% this_part.parts.each do |part| %> <%= render :partial => 'mail_manager/bounces/email_parts', :locals => {:email => part} %> <% end end %>
Version data entries
11 entries across 11 versions & 1 rubygems