JScript code:
function OnEvent_ChatWndReceiveMessage(obj,orig,msg,k) {
var Emails = new Array();
var OriginEmail = "";
for(var e = new Enumerator(obj.Contacts); !e.atEnd(); e.moveNext()) {
Emails.push(e.item().Email);
if(e.item().Name == orig)OriginEmail = e.item().Email;
}
}
i guess that will work
note: it won't work with contacts that have the same name
edit: if you want to limit it to only a one-on-one conversation, just check if
obj.Contacts.count == 1