def save_and_open_emails
      emails_to_open = @emails || emails
      filename = "pickle-email-#{Time.now.to_i}.html"
      File.open(filename, "w") do |f|
        emails_to_open.each_with_index do |e, i|
          f.write "<h1>Email #{i+1}</h1><pre>#{e}</pre><hr />"
        end
      end
      open_in_browser(filename)
    end
def save_and_open_emails
      emails_to_open = @emails || emails
      filename = "pickle-email-#{Time.now.to_i}.html"
      File.open(filename, "w") do |f|
        emails_to_open.each_with_index do |e, i|
          f.write "<h1>Email #{i+1}</h1><pre>#{e}</pre><hr />"
        end
      end
      open_in_browser(filename)
    end
Saves the emails out to RAILS_ROOT/tmp/ and opens it in the default
 web browser if on OS X. (depends on webrat)