This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal


Oct 15, 2018, 8:31 AM
1 Posts

ForAll Loop breaks inline images of email in Lotus Notes

  • Category: Domino Designer
  • Platform: Windows
  • Release: 9.0.1
  • Role: Developer
  • Tags: email lotus-notes lotus-domino email-attachments lotusscript
  • Replies: 2

I do have a Lotus Notes email containing inline images. When I run the following lines of code which simply changes the subject of the email the inline images is lost.

Sub Initialize

Dim ns As New NotesSession
Dim nc As NotesDocumentCollection
Dim nd As NotesDocument

Set nc = ns.Currentdatabase.Unprocesseddocuments()  
Set nd = nc.GetFirstDocument()

    ForAll Items In nd.Items

    End ForAll

Call nd.Replaceitemvalue("Subject", "Forall")
Call nd.Save(True, False)

End Sub

The problem is caused by the ForAll loop which actually doesn't do anything. If the loop is commented out the inline images still remain on the email.

 

I'm hoping any of you guys has an idea or advise how to solve this issue.

Cheers, Martin

 

Oct 16, 2018, 11:20 PM
1 Posts
Is there a wider requirement you are not including?

Is there something that you plan to do within the for loop?

I realise that you'd like to know why the inline images are lost but if you don't plan to do anything with it, just change the subject, then they aren't required,and I'd just delete them. 

 

If you do plan to do something with all the items then post that, because perhaps there may be another way to do it that doesn't cause this issue.

Sometimes, especially in Notes,  you don't get an answer as to why, just ways to stop it from happening...

Nov 8, 2018, 9:41 AM
21 Posts
Set ConvetMIME to False

Before iterating the documents try setting the ConvertMIME property of NotesSession to False.

Example: ns.ConvertMIME = False

 

Alex

 


This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal