This bit of code is in my Zimlet
JS. The problem I'm having is the obj.from/participants/attendees is not returning what I think it should.
I'm expecting that to be something like this...
"Joe Smith <j-smith@dom.edu>"
However it is only giving me the name like this...
"Joe Smith"
Which doesn't help me because I need the email address. Can anyone help or tell me what I'm doing wrong?
Matt
Code:
Edu_Wiu_Directory.prototype.doDrop =
function(obj) {
........
//get uid from various drag n drops in Zimbra
if (obj.TYPE == "ZmMailMsg") {
result = this.grabEcomEmail(obj.from);
}
else if (obj.TYPE == "ZmConv") {
result = this.grabEcomEmail(obj.participants[0]);
}
else if (obj.TYPE == "ZmAppt") {
result = this.grabEcomEmail(obj.attendees[0]);
}
........