class method
self.load
Ruby on Rails 2.3.18
Since v2.2.3 Last seen in v2.3.18Available in: v2.2.3 v2.3.18
Signature
self.load( fname )
Opens an email that has been saved out as a file by itself.
This function will read a file non-destructively and then parse the contents and return a TMail::Mail object.
Does not handle multiple email mailboxes (like a unix mbox) for that use the TMail::UNIXMbox class.
Example:
mail = TMail::Mail.load('filename')
Parameters
-
fnamereq
Source
# File actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/mail.rb, line 98
def load( fname )
new(FilePort.new(fname))
end
Defined in actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/mail.rb line 98
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in TMail::Mail