instance method
in_reply_to
Ruby on Rails 2.3.18
Since v2.2.3 Last seen in v2.3.18Available in: v2.2.3 v2.3.18
Signature
in_reply_to( default = nil )
Returns the “In-Reply-To:” field contents as an array of this mail instance if it exists
If the in_reply_to 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.in_reply_to #=> nil mail.in_reply_to([]) #=> [] TMail::Mail.load("../test/fixtures/raw_email_reply") mail.in_reply_to #=> ["<348F04F142D69C21-291E56D292BC@xxxx.net>"]
Parameters
-
defaultopt = nil
Source
# File actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/interface.rb, line 643
def in_reply_to( default = nil )
if h = @header['in-reply-to']
h.ids
else
default
end
end
Defined in actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/interface.rb line 643
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in TMail::Mail