- Description
-
ImapMessage Class
Object Model
-
Remarks
- Message object is used in two cases:
1. It holds specific message in the mailbox file.
2. If holds specific part in the message.
Which one is used? How do I find the difference in them?
Well, you don't. Messages and message parts are basically
the same - they contains few headers, one empty line, and
some text. So, when message is multipart, this means that
each part holds structure same as the message itself.
Why we didn't use some sort of Part object that is
similar to message object, but points to different structure?
It's because this would be much of overhead to existing
interface, but quality would be degraded. Working this way,
you can access unlimited number of nested messages or message
parts.
Members
-
Body |
|
Holds complete body of message, including
headers. |
EndPosition |
|
Determines end position of message in the
file. |
Filename |
|
Determines filename where message is stored. |
Flags |
|
Holds message flags. |
Headers |
|
References collection of headers for the
message. |
Index |
|
Returns index of the message in the
collection. |
Parts |
|
References collection of parts for the
message. |
Size |
|
Returns size of the message. |
StartPosition |
|
Determines starting position of message in the
file. |
Tag |
|
Tag for misc usage. |
Text |
|
Holds body (without headers). |
UID |
|
Holds message unique ID. |
|