Header from email sent from Outlook
Response added to ticket but no alert to Agent

Delivered-To: thecompanyemail@gmail.com
Received: by 2002:a05:6358:3384:b0:1c3:9e78:6765 with SMTP id i4csp183685rwd;
 Tue, 29 Oct 2024 05:01:20 -0700 (PDT)
X-Google-Smtp-Source: AGHT+IEjJQCDQwKQ9UW96eHhN7H4c6hq746ew1c+m7TW4ZZPyD7Rhm9mkQ3UaL8c3Xbel0KZhF0M
X-Received: by 2002:a05:6a21:4d8b:b0:1cf:3a52:6ad6 with SMTP id
 adf61e73a8af0-1d9a8401be8mr15582982637.24.1730203280035; Tue, 29 Oct 2024
 05:01:20 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1730203280; cv=pass; d=google.com;
 s=arc-20240605;
 b=ZrJghSMFFroUPz4atoo71YCcuc6KkvkZ9Y+rrVbniV31zsaFAlEnIAJeMEfLMRaoSt
 uPh0msLh3lIF3PihSHV1m13mRUMsKim3kCXdkMHUMoQX4ySpfQ0AUqyb6Nhrdy79gz9w
 8w7Nu4hRMv3rKGm2WhRO8L84m+zi8hBeyqYJPnZ9o0jyGtwD6iyjqYWSU8Kp7nT9Exl3
 D1HDRPI47t5BR/I8v0ea66S2deXNHbUj8SAbptC/03nSu7DFd0mA4EyNDrlRHa5B+Jua
 lxXhbgDCV4DAEzqDcPwXzv3cmGrmMbRfuY7t4uHNwHWdA1cIICzOk3c3litaZezgGBvA VQ2Q==
ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
 s=arc-20240605; h=mime-version:content-language:accept-language:in-reply-to
 :references:message-id:date:thread-index:thread-topic:subject:to
 :from:dkim-signature; bh=h4wBfIUv+mQqjEqlEl5ll7NrEJfpetN2qi85dkr68Y4=;
 fh=GC8Lj+7VCxjW0R4ZoABD+Ug9bJgiVs/zw+nPbRxhlIo=;
 b=kIw8Y8vfFKFPzrBNHoSkoBwZix8l1qkw3OVJrTw21ekBMz4jdoLwAmofzWqInoWOKr
 U64wb1dNx4O8i4cJZX8FbnVBHL6ZwqdqIhMXg9PWTKyQKxgQJrgYkcfEQZwrUoD/R68y
 6tnSjcm2X6tBwslAzPuC7WY4saYdlLouYisiSC8M3RhP420Ftg9W0MjRbCymbTSwtpz1
 U3jdcKM89Jb3Y7ZjcYL/m+F3JDg69gPNaH1oxZUXPkIQh8MWjvAzEUI45qLhO8PJC93g
 HXVAX0nsZ6ASOYIYuz7RAiQ6PoFRYpixcpW5dGpxiRyeXrImF25HVjPIKaX0vld9Lv/5 kTwQ==;
 dara=google.com
ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@LIVE.NL
 header.s=selector1 header.b=FbT0Zzv4; arc=pass (i=1); spf=pass (google.com:
 domain of donaldduck@live.nl designates 2a01:111:f403:2e14::81e as permitted
 sender) smtp.mailfrom=donaldduck@live.nl; dmarc=pass (p=NONE sp=NONE
 dis=NONE) header.from=live.nl
Return-Path: <donaldduck@live.nl>
Received: from EUR05-DB8-obe.outbound.protection.outlook.com
 (mail-db8eur05olkn2081e.outbound.protection.outlook.com.
 [2a01:111:f403:2e14::81e]) by mx.google.com with ESMTPS id
 41be03b00d2f7-7edd459ec0fsi8154409a12.592.2024.10.29.05.01.18 for
 <thecompanyemail@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384
 bits=256/256); Tue, 29 Oct 2024 05:01:19 -0700 (PDT)
Received-SPF: pass (google.com: domain of donaldduck@live.nl designates
 2a01:111:f403:2e14::81e as permitted sender)
 client-ip=2a01:111:f403:2e14::81e;
Authentication-Results: mx.google.com; dkim=pass header.i=@LIVE.NL
 header.s=selector1 header.b=FbT0Zzv4; arc=pass (i=1); spf=pass (google.com:
 domain of donaldduck@live.nl designates 2a01:111:f403:2e14::81e as permitted
 sender) smtp.mailfrom=donaldduck@live.nl; dmarc=pass (p=NONE sp=NONE
 dis=NONE) header.from=live.nl
ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none;
 b=s/Xa9kyePN96xg1QH9ZUek/dHSpcERWrJ3kcFxvJskPh+ZmRPo+/zwz1JX+4NBzEOtRe3/HivB0bsgMJDbyWQ7ZIRNeCpIXlWI0Rr+joB/LAGWVh9PPSg1YKiJsXuO8dMPr7VfhldgVh2OXfJFZNxkzziGJjB2FR9B7fJiAMNqqGk75Ea12ZBs/sHaQUcgKpnlDG53WJC1dzjtnOLZ4LhYdpA69iEzdiZaFnUaBUg7g6ueSGnozkfXinmmWwBX4TUeQrnj7QfLuzNRNQuUAuOC4CMjxjzKe7NIGR6ZoSoxpA5NoNWpJTMB01jMDDWOPQkgwSCDyEy9uVMkkDAs//tQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;
 s=arcselector10001;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;
 bh=h4wBfIUv+mQqjEqlEl5ll7NrEJfpetN2qi85dkr68Y4=;
 b=sMZol+Do8uZWfG+SCY4CJ4KerWoeZqxrX9UNkwzqXS8l7lqGVx7qkFOKyoc6qWt49EBcYfjRf3FsLAIKlXnwqaxJxP/RChQfiGrGXuQz6AOKubaSIvhrwQpt/FOpigDX0u0xCue9mhb8i7Tnq8V4rrcgZNssU9/gLEL/3pB8GXzgqXc6/HNmk9a4xjPF0uaJ7Q3T+7RMUNS/jpJenrpkKueuPEGGnyZsVL7cwIhRGUuUdLYW7FLC5G7I2Pwj+7WZFBqU1aR2vRuxj27Vei/J7/9yONh5Cdyu64Pr7F0OHlgKS9BW37h8BtTeuA+zcDeTjjXxNo7MrLIxDFqBvDpVHw==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none;
 dkim=none; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=LIVE.NL; s=selector1;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
 bh=h4wBfIUv+mQqjEqlEl5ll7NrEJfpetN2qi85dkr68Y4=;
 b=FbT0Zzv45h+hjZU16nh+Z/BaiJAMEXfW3dZ851D92PTDLvFRURIeofniHqXWo33I1FArpiwiJ207oHN2/AM94GuYQwyYa2IERX640sV8uA2L9T1N1fDiiy3ar0MOTNKVrM1mCZmujLGZNPq6zNQZ2kek/SN8s+2mGMYq4dK3MGw2w9CRdU7id/zdZMQWlg1yxF5f3O2NkTd/KXJhZ4z7l3xl8pgyfHLQ30hBfwAF7oLeZjOyw1lRSSf/Lp50WcSDmlpkJ5SOnJt0eFC4AQwioNHJAueSlin1cpAdvLL6lF2td5uraT/0tRRGX492pvX7unzTJneUEoEiFC3IYGLi/A==
Received: from DU2P195MB2346.EURP195.PROD.OUTLOOK.COM (2603:10a6:10:495::21)
 by DBAP195MB1033.EURP195.PROD.OUTLOOK.COM (2603:10a6:10:1c6::9) with
 Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8093.32; Tue, 29 Oct
 2024 12:01:15 +0000
Received: from DU2P195MB2346.EURP195.PROD.OUTLOOK.COM
 ([fe80::2591:cdf:251:d9e8]) by DU2P195MB2346.EURP195.PROD.OUTLOOK.COM
 ([fe80::2591:cdf:251:d9e8%5]) with mapi id 15.20.8093.024; Tue, 29 Oct 2024
 12:01:13 +0000
From: Hans Albers <donaldduck@live.nl>
To: "thecompanyemail@gmail.com" <thecompanyemail@gmail.com>
Subject: RE: Test ticket DD [#6322519]
Thread-Topic: Test ticket DD [#6322519]
Thread-Index: AQHbKfnw14m2KBd1D06gnVQJuotbEbKdoGtg
Date: Tue, 29 Oct 2024 12:01:13 +0000
Message-ID: <DU2P195MB2346AECE9B7A4B43CFED61A5DF4B2@DU2P195MB2346.EURP195.PROD.OUTLOOK.COM>
References: <ff498a16953044f49937ee246bc5ecbb@DB8PR05MB6025.eurprd05.prod.outlook.com>
 <01070192d824b105-7355b6f4-1800-482c-9b1d-9a5ebf375343-000000@eu-central-1.amazonses.com>
In-Reply-To: <01070192d824b105-7355b6f4-1800-482c-9b1d-9a5ebf375343-000000@eu-central-1.amazonses.com>
Accept-Language: nl-NL, en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-ms-exchange-messagesentrepresentingtype: 1
x-ms-publictraffictype: Email
x-ms-traffictypediagnostic: DU2P195MB2346:EE_|DBAP195MB1033:EE_
x-ms-office365-filtering-correlation-id: 539c6314-4a9f-446e-2512-08dcf8116305
x-microsoft-antispam: BCL:0;ARA:14566002|12050799009|19110799003|9400799024|8062599003|461199028|7092599003|8060799006|15080799006|4302099013|3412199025|440099028|102099032|10035399004|1602099012;
x-microsoft-antispam-message-info: =?utf-8?B?UmNMd25KdkRGVng2VzR1Zkc4QUsxZkxNVE9DWmZpRmltWktESWFMUStwb0lB?=
 =?utf-8?B?T2wzbGc4NlZGbStVYTNma2hIVE9VU0RtWnlYcXNzOVJuUks5UzIrQ3luWWFC?=
 =?utf-8?B?Y2tXZG5ZRGF0TVZMYXFZWTlXNkpWUUE3cmlBVTFPcHhxVnBISDJvZ2J3LzBw?=
 =?utf-8?B?bTExU3VwUHluMnlLOWNKRGRVY1Rxb0JPNlA4Nks5M3NSS3l5NU5kUkVrb3JK?=
 =?utf-8?B?Ujc3Y3hXRlF1VUs5eFZYb3F3WmdVQ3B6WW1BTFpPRnlBNkZMamgwT1JaQkdO?=
 =?utf-8?B?cmVOaTJXSUpPdS9WNEQxZHFwcXVLaWhyQjlHTTR0MWtscVFhdk9lck0xVXNI?=
 =?utf-8?B?cisvTlIwTFpjNVY2eVdCVjcrRmNWN2lxM1JyM2o1bkVJdWdjT3Q2QUpkcTcw?=
 =?utf-8?B?bnZ3dzBwTFFVcnM3bzVkd2EvQmhnY2RTelErOEhydU05SW5CalZBSXcycVdQ?=
 =?utf-8?B?YnlMS3pNWUk3UFdENGdTZHJtSlRJcUliME82N09PbEJSRzU1b1kzb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EYybENqSnBhaW54OUhFUmluRnljMDY5?=
 =?utf-8?B?WExBbkpxeUN4N2t5OGtKeE9LRjlWV3lZZ1A1Tm16YU5JU2d6YlIyUUpkU1hQ?=
 =?utf-8?B?U0dIdHRRZi81eEtBbncvV1FxTmlPUHEyV1o0bVI0TTVNNU1KNWc1akpkL01v?=
 =?utf-8?B?VWNkalp3bXBWS2NkWUtNQ3BpYWFDNzIxYlpKbCtVekNJVFNPUlNxY080Zm9T?=
 =?utf-8?B?M3dlMnlGV2pKd3liZGlmRHIrSWlkelE9PQ==?=
Content-Type: multipart/alternative;
 boundary="_000_DU2P195MB2346AECE9B7A4B43CFED61A5DF4B2DU2P195MB2346EURP_"
MIME-Version: 1.0
X-OriginatorOrg: sct-15-20-7719-20-msonline-outlook-1ed92.templateTenant
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: DU2P195MB2346.EURP195.PROD.OUTLOOK.COM
X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000
X-MS-Exchange-CrossTenant-Network-Message-Id: 539c6314-4a9f-446e-2512-08dcf8116305
X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Oct 2024 12:01:13.8869 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa
X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBAP195MB1033

    HansAlbers

    In the scenario where you don't get the alert, is the User replying directly to an alert/reply sent from the system? Or are they responding to their original email?

    Cheers.

      KevinTheJedi They reply to the last reply from the system (which includes the ticket# in the email subject) as sent out by the agent. This is also what I did when I was reproducing the issue.

        There is not in the case of my test. Both replies are replies to the same response from the agent. BUT: The first reply from the user was using Outlook and did not trigger an alert, while the second reply was 12 minutes later from Bluemail and it DID trigger an alert.

        Thanks!!!

          I consulted a colleague who knows about pHp programming and we are not 100% if this is what you mean with dump, but this is what we added in class.ticket.php after line 3195 :

          $ticket->onMessage($message, ($autorespond && $alerts), $reopen); //must be called b4 sending alerts to staff.
          // debug alerts by c
          $log = sprintf(__('debug message: %s'), $message);
          $ost->logDebug(
          sprintf( __('debug autorespond: %s'), $autorespond),
          $log
          );
          $ost->logDebug(
          sprintf( __('debug alerts: %s'), $alerts),
          $log
          );

          Which caused these two entries in the log:


          By the looks of it those variables seem to carry other data than just true or false.

          Thanks again!

            HansAlbers

            Apparently your changes are not correct as it’s logging the message and not the needed variables. By dump I meant a simple var_dump($alerts, $autorespond);. Then run the cron command manually via the server’s CLI so you can see the output.

            Cheers.

            We now inserted var_dump($alerts, $autorespond); as you wrote and ran the cron manually which gave this output:
            (when the reply from user was sent from Outlook email client which does not trigger an alert to the agent as stated before)

            $ sudo php ./cron.php
            bool(true)
            bool(false)

            So it seems that alerts=true, autorespond=false.

            Then we ran the cron again after sending an email reply from user from Bluemail on Android phone to the same ticket, which does trigger an alert to the agent, and in this case the output was:

            Both replies (the first one using Outlook, 2nd one using Bluemail) were replies to the exact same response email sent from osTicket to the user. Only the 2nd reply using Bluemail caused the alert to be sent.
            I'm really wondering if something in the email header coming from Outlook messes things up. The thing is, I have no control over what email client customers are using. Most of them do use Outlook I'm afraid.

            Any ideas? Many thanks!

              HansAlbers

              Yea, so now you need to track the $autorespond variable back to where it's being set to false. Then you will know what the cause is; likely the headers or something. If it's not something you can control then you would need to modify the codebase to your liking.

              Cheers.

              We have already debugged the codepieces lines 3186-3193 and our conclusion is that $vars['autorespond'] must be gotten set to false somewhere but we have no clue where and why.
              We did not have this issue in the old v.1.09 osTicket so I'm wondering if there is a bug, also since I've seen many other entries in the forum complaining no alerts are getting sent out to agents for unknown reasons?

              Many thanks, Hans

              When I close the ticket and then have the user send a reply from outlook, the ticket even gets re-opened and reply is inserted in the ticket but no alert to agent.

                HansAlbers

                Once you find where it's being set to false we can better look into this. Since I can't replicate this I need an example to go on.

                Cheers.

                After commenting out lines 3191 and 3192 osTicket is sending alerts to agents regardless if reply was sent using the Outlook email client.

                elseif ($autorespond && isset($vars['autorespond']))
                $autorespond = $vars['autorespond'];

                In the entire code I cannot find anything that sets $vars['autorespond'] to false. Some hints about in which direction I should be searching would be appreciated, as to what mechanism sets it.

                BTW I found another thread where more or less the same issue is being discussed around 2 yrs ago.
                https://forum.osticket.com/d/100969-osticket-intermittently-alerts-assigned-user/38

                Thanks!

                More searching delivered:

                which is where $vars['autorespond'] is set to NOT isset($mailinfo['passive']).

                And @mailinfo['passive'] is set here:

                Unfortunately I have no idea how this further works and what it means. But apparently there is something with this passive threading thingy.

                Hope this rings a bell for you. I've seen a similar Forum entry that is talking about the same, I believe.

                Cheers, Hans

                  HansAlbers

                  Ah, yes. So "passive" means passive threading. Passive threading occurs when the system couldn't find a References header, In-Reply-To header, Message-ID header, or Message-ID in the body of the email that was generated by the helpdesk itself (ie. one that it was able to decode). However it could find one of those headers that matches an existing thread entry in the database so the system will silently thread it through. osTicket will only send alerts when one of the aforementioned headers contain a header it can decode (ie. one that was sent by the system). This is why I originally asked if they are responding to one of their previous emails vs an email sent from an Agent or an alert from the system; as this matters greatly.

                  But what's weird is that in your header examples above for the one that does work I don't see a header that the system would be able to decode so I'm not sure how that one is working. Are you certain you didn't modify the header examples above? Like change an email for a different one or change some of the references, etc.?

                  Cheers.

                  Well, in all my testing, replies from user were a direct reply to the last response sent by agent from osTicket and our real customers are doing so as well, yet our agents hardly get alerts about such replies.

                  In the scenario where they do not reply to the ticket-response, but to their original email that "generated the ticket" for each of such replies a new ticket is created because the ticket# is not in the subject line. But that is acceptable and understandable. But that is not the scenario that is causing us headaches now.

                    What is the use of silently threading through received emails into a ticket, hence, accepting it because the system found a way to match it, but then not alert the agent?

                    HansAlbers

                    In the scenario where they do not reply to the ticket-response, but to their original email that "generated the ticket" for each of such replies a new ticket is created because the ticket# is not in the subject line.

                    That shouldn't be the case either as it should passively thread in that case as the In-Reply-To/References headers should contain the original Message-ID that they are replying to which would be found when doing the mid lookup referenced above.

                    Please answer my earlier question to help me better understand your situation:

                    But what's weird is that in your header examples above for the one that does work I don't see a header that the system would be able to decode so I'm not sure how that one is working. Are you certain you didn't modify the header examples above? Like change an email for a different one or change some of the references, etc.?

                    Are you doing any forwarding or anything? Or is the address the user sends mail to the very same address that's configured in osTicket to be fetched from?

                    Cheers.