Lotus Software logo
IBM Lotus Domino Designer 8.5
  Versions 8.5 and 8.5.1






Examples: ContentSubType property

This agent displays the type and sub-type of a MIME entity.

Sub Initialize

Dim s As New NotesSession
Dim db As NotesDatabase
Dim dc As NotesDocumentCollection
Dim doc As NotesDocument
Dim mime As NotesMIMEEntity
Set db = s.CurrentDatabase
s.ConvertMIME = False ' Do not convert MIME to rich text
Set dc = db.UnprocessedDocuments
Set doc = dc.GetFirstDocument
While Not(doc Is Nothing)
Set mime = doc.GetMIMEEntity
If Not(mime Is Nothing) Then
Messagebox mime.ContentType & "/" & _
mime.ContentSubType,, _
"Content-Type"
Else
Messagebox "No content type",, "Not MIME"
End If
Set doc = dc.GetNextDocument(doc)
Wend
s.ConvertMIME = True ' Restore conversion
End Sub
Related topics
ContentSubType property




Library | Support | Terms of use |

Last updated: Monday, October 5, 2009