LOTUSSCRIPT/COM/OLE CLASSES


Working with a MIME entity in LotusScript classes
Example

The NotesMIMEEntity class is used to access items of type MIME (Multipurpose Internet Mail Extensions). MIME defines techniques for handling 8-bit data, character sets, and a variety of content types. MIME also allows for structured messages, where a message can have multiple parts and relations between the parts.

A typical example is an Internet mail message routed to a mail file without conversion to rich text.

The MIME parts of a document are items of type MIME_PART. In Internet mail messages they are typically named "Body." Programmatically you can access these items as NotesItem, NotesRichTextItem, or NotesMIMEEntity objects.

To access the MIME content of a NotesDocument:


The following table lists the properties of NotesMIMEEntity.
PropertyData typeDescription
BoundaryEndString(Read-only) The boundary that follows a child entity in a multipart entity.
BoundaryStartString(Read-only) The boundary that precedes a child entity in a multipart entity.
CharSetString(Read-only) Content character set of a MIME entity.
ContentAsTextString(Read-only) The content of a MIME entity in text format.
ContentSubTypeString(Read-only) The sub-type of the content type of a MIME entity.
ContentTypeString(Read-only) The content type of a MIME entity.
EncodingConstant of type Integer(Read-only) Current encoding for the non-header content of a MIME entity.
HeaderObjectsArray of type NotesMIMEHeader(Read-only) All headers for a MIME entity.
HeadersString(Read-only) All headers for a MIME entity as one string; GetSomeHeaders returns specified headers.
PreambleStringPreamble of a MIME multipart entity.
The following methods access the content of a MIME entity:
The following methods manipulate multipart MIME entities:
The Remove method removes an entity.

The CreateHeader and GetNthHeader methods access MIME headers as NotesMIMEHeader objects (as well as the HeaderObjects property).

The NotesMIMEHeader class has a HeaderName property, a Remove method, and the following methods for accessing header content:


Example
See Also