instance method
message_id
Ruby on Rails 2.2.3
Since v2.2.3 Last seen in v2.3.18Available in: v2.2.3 v2.3.18
Signature
message_id( default = nil )
Returns the message ID for this mail object instance.
If the message_id 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.message_id #=> nil mail.message_id(TMail.new_message_id) #=> "<47404c5326d9c_2ad4fbb80161@baci.local.tmail>" mail.message_id = TMail.new_message_id mail.message_id #=> "<47404c5326d9c_2ad4fbb80161@baci.local.tmail>"
Parameters
-
defaultopt = nil
Source
# File actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/interface.rb, line 585
def message_id( default = nil )
if h = @header['message-id']
h.id || default
else
default
end
end
Defined in actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/interface.rb line 585
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in TMail::Mail