Closed poojaajudia closed 1 year ago
You're absolutely right, thanks for the detailed report!
@jbostoen still it hasn't been fixed. You only updated one reference of GetHeader function, but there are three more references just above your fix.
switch(true) {
case ($oEmail->GetHeader('x-autoreply') != ''):
case ($oEmail->GetHeader('x-autorespond') != ''):
case (strtolower($oEmail->GetHeader('precedence')) == 'auto_reply'):
// https://www.iana.org/assignments/auto-submitted-keywords/auto-submitted-keywords.xhtml
// Values for auto-submitted: no, auto-generated, auto-replied, auto-notified
case (preg_match('/^auto/', strtolower($oEmail->oRawEmail->GetHeader('auto-submitted')))):
You're absolutely right, this was sloppy. Sorry!
Policy
PolicyBounceAutoReply
has a reference toEmailMessage
class with an invalid call to functionGetHeader()
. This function is not part of EmailMessage class but it is part of theRawEmailMessage
.