# File lib/mail/fields/content_type_field.rb, line 43 def attempt_to_clean # Sanitize the value, handle special cases @element ||= Mail::ContentTypeElement.new(sanatize(value)) rescue # All else fails, just get the MIME media type @element ||= Mail::ContentTypeElement.new(get_mime_type(value)) end