Method: Mail::Message#find_first_mime_type

Defined in:
lib/mail/message.rb

#find_first_mime_type(mt) ⇒ Object


1931
1932
1933
# File 'lib/mail/message.rb', line 1931

def find_first_mime_type(mt)
  all_parts.detect { |p| p.mime_type == mt && !p.attachment? }
end