There are several entries in the forum about notifications or alerts not being sent to the assigned Agent when a user has replied to a ticket. I've gone through all of the forum topics about it but found no solution to the problem I'm seeing since we updated osTicket from 1.09 to 1.18.

Since I was uncertain to which exact existing topic this would fit in, I thought to start a new topic as I might also have found the root cause. I will describe.

The problem:
When a user replies to a ticket via email, the reply is correctly added to the ticket, but most of the times no alert is sent to the assigned Agent, so the agent is not aware that a reply was received.

Tests done
I've done extensive testing and have found out that it has to do with the email client the user is using to send out their reply. I created a ticket for a test user being myself (with a @live.nl email address, not being the addresses used within the ticket system whatsoever!). That user is "Donald Duck". The user created a ticket and I answer to the ticket as the Agent in osTicket. User receives the answer. When user replies via email, using a simple email app on the Android phone (Bluemail in this case) the reply is correctly received in osTicket AND an alert it sent to the Agent.
However, when the user replies from the SAME @live.nl email address configured in MS Outlook, the reply is again correctly added to the ticket BUT NO ALERT is sent to the agent.
When the user replies using the link in the bottom of any ticket response, so not by sending an email but directly entering it into osTicket, the alert is also successfully sent to the agent.

I've already had a close look at the email headers of both emails and could not find any entries in the headers as listed in class.filter.php lines 903-915 such as suggested by @KevinTheJedi in several Forum topics. So, I'm in the blind about why the reply from user sent from Outlook is not triggering an alert to the agent while it does when the email is sent with another email client. I will attach both headers as replies hereunder (I have anonymized the email addresses within them). (not sure how to upload these, forum rejects .TXT files are not allowed, so I posted them as replies, hope that is ok)

Settings screenshots



    HansAlbers

    Header from email sent from Bluemail client on Android phone
    Response added to ticket AND alert successfully sent to Agent

    Delivered-To: thecompanyemail@gmail.com
    Received: by 2002:a05:6358:3384:b0:1c3:9e78:6765 with SMTP id i4csp193349rwd;
     Tue, 29 Oct 2024 05:13:51 -0700 (PDT)
    X-Google-Smtp-Source: AGHT+IHipGTJHGpmWbgmotTcK6+fTe0X78Qg3OlxXZMd+Og0NIyhtmz4bPm93GauXNt+ljTxMzPK
    X-Received: by 2002:a05:6a21:44ca:b0:1d9:6a6b:f7a4 with SMTP id
     adf61e73a8af0-1d9a8520321mr15209625637.49.1730204030758; Tue, 29 Oct 2024
     05:13:50 -0700 (PDT)
    ARC-Seal: i=2; a=rsa-sha256; t=1730204030; cv=pass; d=google.com;
     s=arc-20240605;
     b=ZTgEgyej0ySR+sTzhnghvNG6G3AihtkLpG4jzkuHez0UHhIB/4Vmci+sowQiQD8SKS
     /xBWtyU81QEQ+UWKD6e2As10tQ05+BdWzxbrLo7RSrJz1HqBIUKNoBxKn47RaCrjcI5g
     4wE12YkLp0B8QxmAgVYWO1GEl9yrWDdlCS+finQov90eWAPgnCg7AQk64ibO02Gt3HE3
     moxee9BpXKowjhaOBB/vbSPTlqiCea74RU/dYXYsdEKMPynGursNisKFBqpG7OhDopla
     LXIidRXvOQaHVj6+N6+3rdpFuyXxsGBbCqirX6qzQTdL7x51bPveaDfOXE0szCTrfFHL kfTA==
    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=l3BJdqgZNheNnCErueVeZhHXLOZSJVBOEIObxIbBI1E=;
     fh=GC8Lj+7VCxjW0R4ZoABD+Ug9bJgiVs/zw+nPbRxhlIo=;
     b=JyeULS3lq7Uz+JuPoEGk1f1eni5MSiU9VXAxlF+t4FTjgWZ2h4jkAYOFso83JqlxA1
     WB5JKS2Th4T3u105cpzNMpBeNTp39ta0EL5+wUtDx1kp2KgvPcWpDK+RQctxhyqRsDSU
     W3FoU8Galo3CLFbmfzJxlQGhPkCgS5atJkjIBMoFZUZxXdqiv7l2r3Rtqx3tUbQH0YOB
     98zSgxZ7YgnCkGYRW+pGfv8FtgvwPzKk1yvReEenA8Hu6Wd1NCFiaxDYwCof3+BxKeaX
     h367wjEKPBcLokniojkPfDxjT1RWmXwowfrsY8zc0j0yXS1t2sPeP3HAtYI9jeuWoQ4x 8wCw==;
     dara=google.com
    ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@LIVE.NL
     header.s=selector1 header.b=AhkSG1yv; arc=pass (i=1); spf=pass (google.com:
     domain of donaldduck@live.nl designates 2a01:111:f403:2e12::823 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-AM6-obe.outbound.protection.outlook.com
     (mail-am6eur05olkn20823.outbound.protection.outlook.com.
     [2a01:111:f403:2e12::823]) by mx.google.com with ESMTPS id
     d2e1a72fcca58-72057a649c7si9623913b3a.347.2024.10.29.05.13.50 for
     <thecompanyemail@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384
     bits=256/256); Tue, 29 Oct 2024 05:13:50 -0700 (PDT)
    Received-SPF: pass (google.com: domain of donaldduck@live.nl designates
     2a01:111:f403:2e12::823 as permitted sender)
     client-ip=2a01:111:f403:2e12::823;
    Authentication-Results: mx.google.com; dkim=pass header.i=@LIVE.NL
     header.s=selector1 header.b=AhkSG1yv; arc=pass (i=1); spf=pass (google.com:
     domain of donaldduck@live.nl designates 2a01:111:f403:2e12::823 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=TrRqNUM63GEvFQPvtFspl/XF7Bn6WpvYiu9vYg+M/SdIgRtf0ajn4yoSwKVVYksVP2/SqpvOMgTkjFJtzWKsdFWZ0P+ON9SnNG4X2E6jzzIx9UtJ139DihBd+o2PEDS7cUhw52UcAdP1JMnsqIv7UehHOqb/Uo5ODnHRr8kwT7GgHhUWE8kG8+PreBULbkGTQqG7ZJC2ivgAaqR4NXvX889weNZy2LM2PdR+0/85sz+zuVCxb3VUTwUBn4X6FL1ISsvK75z0cogNj1xm+qDhbenvOwhGcbH647Kl2NqWAeUT6CkKF+YnlqhAg1k2ZtCbqiyELvg5pMR/je23t4bHkQ==
    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=l3BJdqgZNheNnCErueVeZhHXLOZSJVBOEIObxIbBI1E=;
     b=J7pixWgFoVPI7+c56vQc1AobNAW7anE/gEysrvYkxdHeTVlSF4DkoDBJmQKifUmD9Z0QetLr2vvx80kVJ4e9/ckHuymA3ZLjLVvk6iD+bCEQczZDHDWAgzaf/0m2dYSmD5nQ//Bvdo5S0dg40LqWZJKWKaxGY+8aStSeT/UJiCxmgCfBHMZDc2yLOZnI5sT+OmUScHadzsefcZBhPBQUvefnu4A9Pbq2Ii0XnbjXvy9PA5MxXRxm9vh/LDL+YuyKHctZSfmiL2p9CjGf5lES/wtvB4XF7BpU1vJXAM/kUXIwSfVe8haWzzQiqHNbZBZpIjBBi7WK8mRqKmh7bx2gXA==
    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=l3BJdqgZNheNnCErueVeZhHXLOZSJVBOEIObxIbBI1E=;
     b=AhkSG1yvVdfkge+08+q4k3SmcAERE3l5ApHpk82s3w414SxLfa06lBX6WayBY/Rk+Y/ySWH3wI2owH/6q4XsUW7fQ2A1Kgxi5i7kKcX21gBqqYmSoAwjdyLEJ7XY3+ZOHwzzUfTEf7RxpI1CY6jLZeZiUR/BHh7BmRiEWRbXfz869p3I2K80bydlQyg9iZeiXd46XZnZg+ck7XPamgph++r+jNf5bVi98pTV+n1Kq6UfZKvvaUkPy09Hdod7F2ouLLBLY18+9TBCddbquMs2Sd9Gv0DuY0n6g/31cGcPsBVrOOgnaJYUemUC5Y9qRo5qsbFtXD/fjbMbYRHOKLyfeA==
    Received: from DU2P195MB2346.EURP195.PROD.OUTLOOK.COM (2603:10a6:10:495::21)
     by DU0P195MB1722.EURP195.PROD.OUTLOOK.COM (2603:10a6:10:3ba::8) with
     Microsoft SMTP Server (version=TLS1_2,
     cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8093.23; Tue, 29 Oct
     2024 12:13:47 +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:13:47 +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: AQHbKfnw14m2KBd1D06gnVQJuotbEbKdoGWA
    Date: Tue, 29 Oct 2024 12:13:47 +0000
    Message-ID: <DU2P195MB2346673DEE3B18FE7A673218DF4B2@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: nl-NL
    X-MS-Has-Attach: 
    X-MS-TNEF-Correlator: 
    x-ms-exchange-messagesentrepresentingtype: 1
    x-ms-publictraffictype: Email
    x-ms-traffictypediagnostic: DU2P195MB2346:EE_|DU0P195MB1722:EE_
    x-ms-office365-filtering-correlation-id: a1318c33-cbc1-47bf-318c-08dcf813243a
    x-microsoft-antispam: BCL:0;ARA:14566002|12050799009|15080799006|8062599003|8060799006|461199028|9400799024|19110799003|7092599003|10035399004|102099032|3412199025|4302099013|440099028|1602099012;
    x-microsoft-antispam-message-info: =?utf-8?B?M2p0c3ZacnBMb2IvZksvMk9NSERxZzhaWDFEOTRPbGpxbUVNM2RmditCQ0VC?=
     =?utf-8?B?bXhhODFzVkgzNDJLalFiUDJXYnZPVzg1ZDdmRXRXNkRYMFdwdllrZmRlMkxL?=
     =?utf-8?B?Y0d0Q3BjY05uR0duNVFnTmE0d2s5aFZWZGQ5ZXp1UXNWRExyMWRUc0k2ZGZr?=
     =?utf-8?B?ZzVoY0FCRTNWU0YvOTVFRDNuU0s4M3BXa2l2L1V0YUoyUSsyRlUyK3Y1L1cx?=
     =?utf-8?B?ZGtiSlFwV0g4UFBEbWJJeEgwazNsZ294K2Jjc0dvM1RMOTF2cmoxeC8rUjBa?=
     =?utf-8?B?S0ZaVVdqNFp0M2xYSnJ5TWdxTVdXeUdaWGpwMnlNTjlCcGdUbjJWTER6UTIr?=
     =?utf-8?B?L0hZK1ByOHFXbUNydjBrR05yTVY3elpKcXVJMmk0SldoanpZZzllWUR3TTJL?=
     =?utf-8?B?Qll2QUdOeVVNMWR3Ynp4eVkvL1RMZFAvTG1CakFmT2NPT2N1b0pxVzA3encv?=
     =?utf-8?B?TmFYRXA3VlFZNXozZ0pPQXJUWHVXendvNThIeElmSGI2bVk4bFNlVHFtZ3VS?=
     =?utf-8?B?a2RTcFAvb2hOcm1HM2xYTnNra1dRRkl4clBFcHBpRm9OeXhHU3Ivb2I2amxi?=
     =?utf-8?B?OHRqWHh6NmRnWHN4UUJpZjJxTDdpaVNYWDQ5LzdnYXVLeGYyVGNnQkc0QVNr?=
     =?utf-8?B?KzZDekdmV1BHMnJpdEFETDN1UjhsTGxHbFJqN1lid01yTjZ3RCtJT1FxQVFD?=
     =?utf-8?B?dEdBdjZaWFNTYm9YM1ZkQlVZcytrS0o0cDZrbi83NWhmWjJsK0N2ZG0wTjgy?=
     =?utf-8?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ktoUDFIUVlYWEE9PQ==?=
    x-ms-exchange-antispam-messagedata-chunkcount: 1
    x-ms-exchange-antispam-messagedata-0: =?utf-8?B?dGVWMWJRTlkxZVdjeW42RENieG5KbWFGRktpSFNkOGVTZWdXWUM2WkZQeWhZ?=
     =?utf-8?B?Vm5nVUVqVGhOb3R2SVhPSnh5eHhKTitmQ2FHUzFIS0pPdUpHaXFLQ2tEeGdv?=
     =?utf-8?B?SkxwaUJiY1c0ZUI5OGZlVTlzZzhlbWYrZHBGQ05pS1A0Q2lQNzYvQjk4WnNq?=
     =?utf-8?B?NEtPNjJMQktzNmdhYXZpd3p2UEFJWTNERk40S1N5ODZEUnArSkNNbzF6OG9X?=
     =?utf-8?B?NzBmK0NYYW5rVEc0a1EzdG8yU2RRQ2F2eVh3Z29MWDJvdWlmOFdQQm4wUEFF?=
     =?utf-8?B?R0hjUzdiSEFhNjNHQkprZ25HcjNnWWZ3akIwaUI4NkgwUTYwY1pYWTJSVlFt?=
     =?utf-8?B?QTZlR0dJU3dlK1RGVHZrOXRvY2REaUJDSDZwODlCQ2FUNDFFQVFIZmptb3di?=
     =?utf-8?B?WGhKS0pEakYrVU8vQzBtdVpsOWh2VktoOE5sYm41Q1NxUnBmaHRXam9RZG9o?=
     =?utf-8?B?eit5enhza09pV2UxOFYzdUxzTzRSaGVTRDJwM3Btbi9aUC9xVVgvUjFoMVlF?=
     =?utf-8?B?MUdjMHNQQ0lLY1U4VG8wb09mK0V1VjRQa0czYmFBRkQwTnFPRWFFRysrRml6?=
     =?utf-8?B?ajdXTXVQcUgzVlFFVFFEWFZMZitLbVZ4bW50QUJwWHZTZlZkZ2F4d2QrL2Mx?=
     =?utf-8?B?NFkwTlEzU0NzL3dxL1N4c2tBcEdtZHV6REpKZXIvZDVOZHVqQk80NC91aVNs?=
     =?utf-8?B?N3ZqaU9COWRvalRLUlFhWmRIM2QzOHlBMFI3Q29OQnBIaWdpS0oxT1F6WUNT?=
     =?utf-8?B?VDZ5YnJ3VW03emd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nH5YEo1vVeBM=3D?=
    Content-Type: multipart/alternative;
     boundary="_000_DU2P195MB2346673DEE3B18FE7A673218DF4B2DU2P195MB2346EURP_"
    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: a1318c33-cbc1-47bf-318c-08dcf813243a
    X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Oct 2024 12:13:47.5314 (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: DU0P195MB1722

    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?UmNMd25KdkRGVng2VzR1Zkc4QUsxZkxNV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dFVRdm0y?=
     =?utf-8?B?ZEtxWGxKMG43b2dLSnJPQ3ZjeGswSTdGd2ZMZUplNWRrWk9ha29FNjlhWnlL?=
     =?utf-8?B?Q24xU1RzaWQ2c1U0QmY5NjhQMk1VTDlZdkhXenlaME1qMWdFUWp6cjJtaGFR?=
     =?utf-8?B?VU4zbkExNkpsbXpWYnhwUjM3bDVEZXo5MTRLU0k5RkdlZTZycVBCczV2RVBh?=
     =?utf-8?B?VHRVLzNHV3VaT0JSL1VRTDZ5VDZzSjhpQ01DMUhKeEJRNWo5UHUzR2lpWkNE?=
     =?utf-8?B?M2piZlhETmo2THd0NThsOEdka3ZERTVUYWFFT1EwcUlSeVdxVjBuRXVRVTZk?=
     =?utf-8?B?T1RIMzJXYXlxbWNTTk1oeHM1MnhwSEVwUTc2QUhwSzJ4dnJ5dXRyazNUeXgw?=
     =?utf-8?B?UnQ2aGVXZXFST1FqbnlPZ245Qy8rU2pJRmp3cDBDbjZLZng5NlAvMWdpMnov?=
     =?utf-8?B?N0ptV0JvdFFLYWxJb0xaU2p0bmhkR3AzTVVtb3RTcEI0ZHl1SThlU3NsUjdl?=
     =?utf-8?B?aERJemFrQjFLZGNBU1pkbkVQZXAwdFFJWHRqQzBZR29rMVhGWGkrdUZiZDZk?=
     =?utf-8?B?T0hDcThaMWtENElOcDljdHRUc0cvaWd5MEQwK1pIWldOd2dnbWhZNEx4MDVR?=
     =?utf-8?B?MVR0R1BPbTU2K1NzbThkU0VBQmduMEp6WmpZbU9LWEprc3RlZ0dDVHh6ZnU3?=
     =?utf-8?B?SEROLzJHaUY2SFltVk01eTJlY0JYN0xwMmtteFRhWmxFb1RITDZHSWprUGxG?=
     =?utf-8?B?L1E4RFFVRmtlUmx0SExqWFc5b2hDV0E9PQ==?=
    x-ms-exchange-antispam-messagedata-chunkcount: 1
    x-ms-exchange-antispam-messagedata-0: =?utf-8?B?VVViRUo1UDJST0ZkUHNBYnRKRTZHLzlxWXBYTzVPWUQ2MTNLN3NKWUVsWnZD?=
     =?utf-8?B?dncrNUhxdXl5KzZZdFdpdUI4ajVoRitsMlFoZVE3VlpXVm4yZzNYc05Fakll?=
     =?utf-8?B?RVZsZUVVcnVJb1BlU2hrYlFDOTlmamlqUDhkVTAvdnRaMmpBQ0VLQjQyNzhw?=
     =?utf-8?B?S2ZVREszVVE4R0VEOCtTSkNpZTNtWDRkRDlwZm9tcWpVWmlnZTBNeS9SZWJJ?=
     =?utf-8?B?WXV4aGVpaVo2SkVlMFFOZlRtL0l6VTQ0M2NHRkhwMm5GVkN5YlJtTk5OaTNP?=
     =?utf-8?B?M0VHVVpOTDVjYWFZN0dJdFdWYUFZQW5iTlN6SjkybFNUQWtRdElOTmJ5bGpV?=
     =?utf-8?B?VDk1bThzeURFdEFIVEttNlZmM29pY1BzOTJtaU5wYjg1VlFKWHVqaU1lMnlX?=
     =?utf-8?B?RDRBN21zd2FQelJTMTFidkNNOFRLeGsyRU9RWm1nYjJxSm5iRXVwdzZlNU84?=
     =?utf-8?B?c1dnLy9OUC8zc2xLK3BBQUdPOVpkWTR2TkRrVklrUFpZRyt0N2oyMkhZTFpM?=
     =?utf-8?B?MnRqWkRLNjl0QkNDZEdZWkhUeUtWdTBacjk2dTFqZWVaenMvblQxVUxGNmU0?=
     =?utf-8?B?WDBWakRCaXowY2VYd1JCQkJDUkpuMXJoVW44aXVQdGZleHlzYTFQeUE4dzJz?=
     =?utf-8?B?b2IwRUl6MUY3UWlWOVpDbVVOcVJ1MUpDNWpYTlRVQktnY2MyeXVjZEJyTXRT?=
     =?utf-8?B?QTZBVXJXR09mOWJzU2R0bkZoV1RJb0pVMmhMMTY1N3NnOUROSU5XZXpRaUh2?=
     =?utf-8?B?WElWaG16Q3VqQUJJdmRRbGU2M0tlcnlNeGdrN296MjMraGdaa1RiNWdhNHQy?=
     =?utf-8?B?Q2x4OXpSNktZOHl1VDl0WUdIYXBFUXBYV2JkQThpZVozUnp2ZEZWRTY2SjMv?=
     =?utf-8?B?anA0T0xIenQrL0ZaQ0s3MVluOTVscm9kNVQwVFkvcG5BY3lFc2lhRkNhTzJ2?=
     =?utf-8?B?eDJuRml0cDU3WkZnQXZTTFNkbklTWEtESGlPS05EU0hsdjVXZnk2ZnFpN0pa?=
     =?utf-8?B?ZG9YZVVCc2gxUWpsZ2hUZG1hUmUweE9WSmhCZ0grRWs5UXZsbFhFV1dTNHRv?=
     =?utf-8?B?bUwyNWM0dVc5VUZxWXl6SkN5NWpzakFWSXFKNUREaVNGenpmOEk0d0ZCZzdy?=
     =?utf-8?B?U3U2ZjA4eVpxY1RqbmJ6R0ZOcEtvSEk5eStrWTJkOWhwa282QmhyVkxpcFMx?=
     =?utf-8?B?NWcvSUpUdTJSMkZPRDR0Zjdta05NekdZeTJQTzJPcGVEUlZ5S2ptOTNoZEJF?=
     =?utf-8?B?Slhud1ltZmpEWlVGcGluelBxcENkb0dUSnNrWGdwS0hiQ0NMUDVoZGFLLy9P?=
     =?utf-8?B?NjUwa0ljb2lyTGRZOWtUSlNIUUhrVXhGTkU3c251WS9RLzhOTmN3cVVXTVZr?=
     =?utf-8?B?MDNIV0IyZnM4OTVWbHI2cHN0cDBRVEYybENqSnBhaW54OUhFUmluRnljMDY5?=
     =?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.