Link to home
Start Free TrialLog in
Avatar of AlphaGuys
AlphaGuysFlag for Afghanistan

asked on

Need Email Headers From Lotus Notes (For Email Threading )

Need to pull the following fields
'References' and 'In-Reply-To' and 'Message-ID' headers from NSF files in order to reassemble the email threads.
Currently using the notes 7 client.

My attempt to map these so far is as follows:
Message-ID > $MessageID
In-Reply-To > In_Reply_To
References > $Ref

I'm not sure which field is the 'References' field in Notes or what it might be called.

Here is a code snippet: (vb6)

If oDoc.hasitem("In_Reply_To") Then
        msgbox oDoc.GETITEMVALUE("In_Reply_To")(0)
end if
Avatar of Sjef Bosman
Sjef Bosman
Flag of France image

Is this Notes mail or SMTP mail?

$Ref is a reference to the parent document from a response document, so I suppose that's not the field you need.

What are the other fields you are looking for??

AFAIK there is a Notes view (Mail Threads) that uses the threading information you might be looking for.
Avatar of AlphaGuys

ASKER

Sjef
I suppose it would be SMTP
The only reference I've found is described in RFC 821

We receive and process Lotus Notes NSF files from our clients.
I need to pull these fields:
Message-ID
In-Reply-To
References

The first two seems to be in notes fields $MessageID &  In_Reply_To and the data seems correct.


PS - We use the Notes client (from VB6) to extract the fields
I doubt it if Notes uses these fields. Message-ID is indeed $MessageID, but the other two aren't supported, as far as I can tell.

According to http://www.ibm.com/developerworks/lotus/library/notes8-new/ :
"The Mail application incorporates a conversations feature that groups message threads based on the contents of the Internet message header fields for Message-ID and In-Reply-To, which Lotus Domino translates to parent and child entries in a Lotus Notes response hierarchy."

So the fields are implicitly there, but not in the documents themselves.

To get the In-Reply-To value you have to get the document, get its parent, and take its $MessageID.
What References stands for I don't know.
ASKER CERTIFIED SOLUTION
Avatar of AlphaGuys
AlphaGuys
Flag of Afghanistan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Meaning: it works in R8?