instance method
mime_version
Ruby on Rails 2.3.18
Since v2.2.3 Last seen in v2.3.18Available in: v2.2.3 v2.3.18
Signature
mime_version( default = nil )
Returns the listed MIME version of this email from the “Mime-Version:” header field
If the mime_version field does not exist, returns nil by default or you can pass in as the parameter for what you want the default value to be.
Example:
mail = TMail::Mail.new mail.mime_version #=> nil mail.mime_version([]) #=> [] mail = TMail::Mail.load("../test/fixtures/raw_email") mail.mime_version #=> "1.0"
Parameters
-
defaultopt = nil
Source
# File actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/interface.rb, line 713
def mime_version( default = nil )
if h = @header['mime-version']
h.version || default
else
default
end
end
Defined in actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/interface.rb line 713
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in TMail::Mail