• Nikhil Shringarpure 22
  • 0 Points
  • Member since 2016

  • Chatter
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
  • 0
What is the Best way to handle email war or infinite loop which creates a large number of cases, caused due to Automatic Reply or Auto Response or Out of Office replies in Email to Case?

Couple of ways i explored that might work.

1: Write a Trigger before insert for the case , here you check if the subject has key words like automatic reply or OOR and if found then do not create a case for such emails. This will avoid any new cases being created after the 1st one, no email will be sent back to the sender as no new case was created and this will stop the loop.
Cons: If the email comes with keyword other than the ones you are checking in the subject then it might not work, will have to try to capture all such keywords to stop it from creating more cases.

2: I read some blogs where people suggested to write a tigger which will check if more than 3 emails are received from the same email id with the same subject in a short duration of time if found then kill the loop and not create more cases.
Cons: I see that the biggest drawback here is that it will still create a 3 cases before it decides that this is a auto reply email frenzy.
2nd con i see is that sometime due to various network/organisation/outlook problems the auto reply email might not be received immd and this might make the system beleive that its a valid response and create a new case.

3: We currently do not have the Thread id or the case id on the subject on the template that we use to send emails back to customer for cases created , will adding the thread id on the subject link it in a way that when an auto reply email is received it knows that its the same thread id and not create an addional case. We do have a thread and case id in the body of the email. 

Does anybody have the most efficient way to handle this common problem?