Description
-
References collection of parts for the message.
Property type
-
An ImapMessages
object.
Syntax
-
object.Parts
The Parts Property syntax has these parts:
object |
An expression evaluating to an object
of type ImapMessage. |
Remarks
- When message is declared as multipart (using Content-Type
header), that means it contains one or more parts that are
'separated' from the text of the message. For
example, some mail clients will send formatted messages so
that they send plaintext as regular message text, and
formatted as separate part.
You will notice that message has parts when Text is something
like
This is a multi-part message in MIME
format.
which means that actual message is stored in one of message
parts. So, to locate text you are looking for, instead of
looking at
-
- Message.Text
-
- try
-
- Message.Parts(0).Text
Message.Parts(1).Text
-
- or similar - depending how many parts are in the message.
You can get total number of parts using Count
property.
Note that Parts property points to Messages collection - same
structure as Folder.Messages
property, but different contents. It is actually the same
object, because Part is same object as Message.
|