This class represents a message which exists on the POP server. Instances
of this class are created by the POP3 class; they should not be directly
created by the user.
| Public Attributes |
| length |
The length of the message in octets.
|
| number |
The sequence number of the message on the server.
|
| Public Methods |
| all |
Alias for #pop
|
| delete |
Marks a message for deletion on the server. Deletion does not actually
occur until the end of the session; deletion may be cancelled for
all marked messages by calling POP3#reset().
|
| delete! |
Alias for #delete
|
| deleted? |
True if the mail has been deleted.
|
| header |
Fetches the message header.
|
| inspect |
Provide human-readable stringification of class state.
|
| mail |
Alias for #pop
|
| new |
|
| pop |
This method fetches the message. If called with a block, the message is
yielded to the block one chunk at a time. If called without a block, the
message is returned as a String. The optional dest argument will
be prepended to the returned String; this argument is essentially obsolete.
|
| top |
Fetches the message header and lines lines of body.
|
| uid= |
|
| uidl |
Alias for #unique_id
|
| unique_id |
Returns the unique-id of the message. Normally the unique-id is a hash
string of the message.
|
<code/>and<pre/>for code samples.