Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mail database spanning UNIQUE ID for notes mails 1

Status
Not open for further replies.

CeeKai

Programmer
Sep 24, 2002
5
AT
Hello all,

I'm new in domino programming and encountered the first problem I can't solve on my own:

I'm in bad need for a (at least mail) database spanning unique identifier for a (mail) document. UID doesn't work because it is only unique within a database including it's replicas.

Background information: I'm processing all mails and mail databases of several domino servers and have to ensure that I'm aware of a mail, that should be processed twice. In this case I don't want to process the mail, but just increase a counter (already processed).

I'm looking forward to your solution comments!!
Chris
 
I believe you have been slightly confused by the wording of the Designer Help on UNIDs, which states : "The universal ID, which uniquely identifies a document across all replicas of a database".
This wording is, I will admit, confusing. What you should understand from this statement is that no two documents have the same UNID unless they are replicas of each other.
In other words, the UNID is indeed a totally unique database-spanning document identifier.
You can rely on it totally.
 
Thanx a lot for your reply.

So it's for sure that the UNID is really unique for a document in a domain, but I fear that's not enough for my purposes.
I have to keep track of a document through all domino databases. E.g. a mail-document is sent to a user-group: in this case the document gets new UNIDs in each inbox of the repcipients, that all differ from the one of the sender. So I can't keep track of the mail by using the UNID.
Tried it by using "$Orig", but that doesn't work because the original document, of courcse, has no $Orig - and so I only can identify it's copies, but not the original document itself. Then I tried $MessageID, which works great, but only for Lotus Notes 5.x and higher, because in 4.x there is no $MessageID.

I hope it's understandable what I'm looking for :)
 
Okay, you're not tracking ONE doc, you're tracking an undefined amount of COPIES of a doc.
So what you need is an agent that slaps a unique ID on each and every incoming mail from the server, before that mail gets dispatched to however many recipients there are.
Right ?
 
That's correct. In fact it are the original document and it's copies I want to track.

The problem is that, in case of using an agent that generates a unique id for my purposes, i have to do this for new but also for all documents that are already in the database. Concerning my environment with over 5000 mail databases this could last a while...

But thanx a lot for your replies, they really helped me to handle this somehow!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top