如何将 NotesDocument 转换为 MIME

How to convert a NotesDocument to MIME

为什么下面的函数总是returnNothing?

Function GetMimeEntity(Doc As NotesDocument) As NotesMimeEntity
    Set GetMimeEntity = Doc.GetMIMEEntity

    If GetMimeEntity Is Nothing Then
        Doc.ConvertToMIME 2
        Set GetMimeEntity = Doc.GetMIMEEntity
    End If
End Function

Doc 是一封电子邮件。

您是在 运行 之前设置 session.convertMIME = false 吗?否则,NotesSession 会将任何 MIME 内容转换为 CD 记录。