method

new

v1_8_6_287 - Show latest stable - Class: Mail
new(f)
public

Create a new Mail where f is either a stream which responds to gets(), or a path to a file. If f is a path it will be opened.

The whole message is read so it can be made available through the #header, #[] and #body methods.

The "From " line is ignored if the mail is in mbox format.