Examples: ContentAsText property

This agent displays the content of a MIME entity as text.

Sub Initialize
  Dim s As New NotesSession
  Dim db As NotesDatabase
  Dim dc As NotesDocumentCollection
  Dim doc As NotesDocument
  Dim mime As NotesMIMEEntity
  Dim m As String
  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.ContentAsText,, _
      Messagebox "Not MIME",, _
    End If
    Set doc = dc.GetNextDocument(doc)
  s.ConvertMIME = True ' Restore conversion
End Sub