Skip to Main Content
HCL Domino Ideas Portal

Welcome to the #dominoforever Product Ideas Forum! The place where you can submit product ideas and enhancement request. We encourage you to participate by voting on, commenting on, and creating new ideas. All new ideas will be evaluated by HCL Product Management & Engineering teams, and the next steps will be communicated. While not all submitted ideas will be executed upon, community feedback will play a key role in influencing which ideas are and when they will be implemented.

For more information and upcoming events around #dominoforever, please visit our Destination Domino Page

Status Needs Review
Workspace Domino Designer
Categories LotusScript
Created by Guest
Created on Mar 21, 2024

Improve Notesitem.text functionality to get all body content of a mail with forwarded mail

In an application, the content of the mail body is read with the help of item.text and written to another document. For some mail body with forwarded mails, the body is not read completely.


Sample code:

dim bodytext as string

dim item as notesitem

dim doc as notesdocument

Set item = doc.GetFirstItem("Body")

bodytext = item.text


Using that code, the body content before the forwarded mails body is being captured using 'item.text'. However, for forwarded mail body, item.text is not working.

When reading out the "body" field, the readout ends at the first HTML end TAG. As a result, everything after the first /body and / html TAG is no longer displayed.

It would be helpful if improving notesitem.text by, for example, recording the number of opening and closing body tags and recording the entire text up to the end.


  • Attach files
  • Guest
    Reply
    |
    Mar 23, 2024

    If the message is richtext, you would need to use the richtext item functionality to read the item.
    If this is MIME you need to use the MIME API in Lotus Script.
    Just getting the text gets you the raw text which is probably not what you want to use.
    This does not sound like you need an enhancement in the functionality, but use different functionality in Lotus Script.