Hello all,
I was tracing and debugging the code in storeIncomingEmail service in
CommunicationEventServices.java (on rev. 772658). Steps I followed:
-- Sent an outgoing mail from system . (say from [email protected])
-- Then replied to this email id (incoming email)
So reffering line no. 599 :
// check for for a reply to communication event (using in-reply-to the
parent messageID) ( line 600 to 616). What I found is this part of code
never works because parentCommEventId is never saved in database in
CommunicationEvent entity. Reason being:
Here code is trying to get parentCommEvent on the basis of "inReplyTo"
field from CommunicationEvent entity by comparing it with messageId.
But what I found is "messageId" for outgoing mail is never *same *as
"inReplyTo" for incoming mail.
Please correct me if I am wrong some where . Any views on this are most
welcome
Thanks
--
Divesh