@KevinTheJedi
Hello,
So I have been looking into this a bit more lately... IT is slow going (I have to send an email every time, and dump variables out), but I think I have more information...
So the problem stems from the "passive" entry in the $vars object (edit: "passive" is found in $mailinfo, the $autorespond is found in $vars)...
This is happening because sometimes the lookupByEmailHeaders function is being called, and sometimes it is not... When it is not being called, then the "passive" variable is never set. Passive is set in the lookupByEmailHeaders function class.thread line 1498.
When the passive entry is not set, then the autorespond in vars is set to true [class.thread line 476], and that will cause the alert email to send (see again class.ticket line lines 3192, 3193)
When the passive entry is set in lookupByEmailHeaders, that will cause autorespond to evaluate to false [class.thread line 476], so that will cause the alert email to not send...
So when I comment out lines 3192 and 3193 in class.ticket, this will tell the code to ignore what it sees in vars['autorespond'], and will leave the $autorespond variable alone, and the alert emails will send to the agents..
What I don't know is why sometimes lookupByEmailHeaders is being called, and sometimes it is not being called, but I think that is not the real issue here (perhaps sometimes it should be called, and sometimes not??)... Could the real problem be a flaw in a variable (passive) not being set sometimes, when it should always be set (either true or false)...
Anyhow, does this help at all??
Another thing I am sorta wondering here... Am I the only one that is having trouble with these alert emails?? How is that possible?? Does no one else care about alert emails telling the agents that a ticket has been updated?? How can this be specific to just my environment??... I am not trying to be pejorative here, I really think that this is just affecting me, otherwise I think many others would be noticing this problem... I just don't see how it can affect only me and our installation here.. Its not like we are using anything out of the ordinary (web gmail, web yahoo mail, android clients, etc...)
... Anyhow, I hope this sheds some light on this (does it?)...
If you want me to, I can try to look a little deeper here, but I am not sure what I should really be checking here... In the meantime, we can mask the problem by commenting out those two lines, however I think there is something more fundamentally wrong here (it should really be fixed at the source of the issue)...