Reputation: 979
I have created a CPP COM dll to read a EML File and add it to Lotus notes NSF file. Using MIMEContent to create the mails but the problem is when i am adding the document to folder view $Inbox same mail is copied $Sent Item Folder. Below is the code
newdoc.Save();
Folder.FolderAddDocument(newdoc);
// Color the background
Folder.SetBackgroundColor(LNCOLOR_LIGHT_GRAY);
// Change the heading display
Folder.SetHeadingDisplay(LNVFHEADINGDISPLAY_BEVELED);
Folder.Save();
//cout<<"ReadViews4"<<endl;
Folder.Close();
//cout<<"ReadViews5"<<endl;
newdoc.Close();
Thanks and Regards, Haseena
Upvotes: 0
Views: 618
Reputation: 54
Like others said: Create the field "DilveredDate". Replace its value with e.g. Today.
DateTime timenow = session.createDateTime("Today");
timenow.setNow();
newdoc.replaceItemValue("DeliveredDate", timeNow);
And your document will not show up in the sendTo-View.
Upvotes: 0
Reputation: 21709
This is the selection formula for the Sent view of the 8.5.x mail template:
SELECT DeliveredDate = "" & PostedDate != "" & !(@IsMember("S"; ExcludeFromView))
If the imported mail document should appear as a incoming mail, it must have a DeliveredDate field with a date (which then means that it will not appear in the Sent view).
I can not see how you set the properties of the mail document, since your code example only contains newdoc.Save()
and newdoc.Close()
.
So have a look at the properties of your imported mail, and have a look at the CPP code that sets the properties of the mail document.
Upvotes: 1