XF 2.2 Error processing unsubscribe message

alexm

Active member
I’ve started getting a few of these email unsubscribe errors that I need a bit of help please!

Code:
Laminas\Mail\Header\Exception\InvalidArgumentException: Error processing unsubscribe message (see internal_data/temp/email_unsubscribe_error.log): Invalid header value detected src/vendor/laminas/laminas-mail/src/Header/GenericHeader.php:64
Generated by: Unknown account Mar 4, 2024 at 4:13 PM

Stack trace
#0 src/vendor/laminas/laminas-mail/src/Headers.php(488): Laminas\Mail\Header\GenericHeader::splitHeaderLine('X-Ham-Report: S...')
#1 src/vendor/laminas/laminas-mail/src/Headers.php(233): Laminas\Mail\Headers->loadHeader('X-Ham-Report: S...')
#2 src/vendor/laminas/laminas-mail/src/Headers.php(97): Laminas\Mail\Headers->addHeaderLine('X-Ham-Report: S...')
#3 src/vendor/laminas/laminas-mime/src/Decode.php(150): Laminas\Mail\Headers::fromString('Return-Path: <m...', '
')
#4 src/vendor/laminas/laminas-mail/src/Storage/Part.php(111): Laminas\Mime\Decode::splitMessage('Return-Path: <m...', 'Return-Path: <m...', '')
#5 src/vendor/laminas/laminas-mail/src/Storage/Message.php(53): Laminas\Mail\Storage\Part->__construct(Array)
#6 src/vendor/laminas/laminas-mail/src/Storage/Imap.php(127): Laminas\Mail\Storage\Message->__construct(Array)
#7 src/XF/EmailUnsubscribe/Processor.php(41): Laminas\Mail\Storage\Imap->getMessage(1)
#8 src/XF/Job/EmailUnsubscribe.php(36): XF\EmailUnsubscribe\Processor->processFromStorage(Object(XF\Mail\Storage\Imap), 8)
#9 src/XF/Job/Manager.php(260): XF\Job\EmailUnsubscribe->run(8)
#10 src/XF/Job/Manager.php(202): XF\Job\Manager->runJobInternal(Array, 8)
#11 src/XF/Job/Manager.php(86): XF\Job\Manager->runJobEntry(Array, 8)
#12 job.php(43): XF\Job\Manager->runQueue(false, 8)
#13 {main}

Request state
array(4) {
  ["url"] => string(8) "/job.php"
  ["referrer"] => string(56) "https://www.xxxxx.co.uk/forums/optics.58/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}

From internal_data/temp/email_unsubscribe_error.log:
Return-Path: <xxx@hotmail.co.uk>
Delivered-To: unsubscribe+a7ffed01+xxx=hotmail.co.uk@xxx.co.uk
Received: from xxx
by xxx with LMTP
id cUSVHdfx5WVnFwcA1UD/hA
(envelope-from <xxx@hotmail.co.uk>)
for <unsubscribe+a7ffed01+xxx=hotmail.co.uk@xxx.co.uk>; Mon, 04 Mar 202416:07:51 +0000
Return-path: <xxx@hotmail.co.uk>
Envelope-to: unsubscribe+a7ffed01+xxx=hotmail.co.uk@xxx.co.uk
Delivery-date: Mon, 04 Mar 2024 16:07:51 +0000
Received: from mail-db5eur01olkn2079.outbound.protection.outlook.com ([40.92.64.79]:55526 helo=EUR01-DB5-obe.outbound.protection.outlook.com)
by xxx with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
(Exim 4.96.2)
(envelope-from <xxx@hotmail.co.uk>)
id 1rhAr0-001wXX-2M
for unsubscribe+a7ffed01+xxx=hotmail.co.uk@xxx.co.uk;
Mon, 04 Mar 2024 16:07:51 +0000
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
b=Gititzoad/va+RaUULUjNDUBXuw7N7m6ULJbPsV8MWRdct/S
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;
s=arcselector9901;
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=yUrB0BMDrp8yxmE4HiiW8dLTt1Okv4WfTNgIuKVQoJo=;
b=hQqznBIXOtZcSMX8BlNd9DTNjHGCH2Lvc8QHkbc
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none;
dkim=none; arc=none
Received: from VI1P195MB0784.EURP195.PROD.OUTLOOK.COM (2603:10a6:800:147::16)
by VI2P195MB2519.EURP195.PROD.OUTLOOK.COM (2603:10a6:800:21d::14) with
Microsoft SMTP Server (version=TLS1_2,
cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7339.38; Mon, 4 Mar
2024 16:07:09 +0000
Received: from VI1P195MB0784.EURP195.PROD.OUTLOOK.COM
([fe80::25bb:ac11:ac04:e846]) by VI1P195MB0784.EURP195.PROD.OUTLOOK.COM
([fe80::25bb:ac11:ac04:e846%4]) with mapi id 15.20.7339.035; Mon, 4 Mar 2024
16:07:09 +0000
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
From: xxx@hotmail.co.uk
Date: Mon, 4 Mar 2024 16:06:46 +0000
Subject: [List-Unsubscribe[a7ffed01,xxx@hotmail.co.uk]]
X-Apple-Unsubscribe: true
Message-ID:
<BFDFDC9A5B99232@VI1P195MB0784.EURP195.PROD.OUTLOOK.COM>
Auto-Submitted: auto-replied
To: unsubscribe+a7ffed01+xxx=hotmail.co.uk@xxx.co.uk
X-Mailer: iPhone Mail (20G81)
X-TMN: [2qb7F0FX7sCJe5E2Lx4S5SnOZZBDAAXf]
X-ClientProxiedBy: LO4P123CA0018.GBRP123.PROD.OUTLOOK.COM
(2603:10a6:600:150::23) To VI1P195MB0784.EURP195.PROD.OUTLOOK.COM
(2603:10a6:800:147::16)
X-Microsoft-Original-Message-ID:
<F53BCFB6-589E-4D51@hotmail.co.uk>
MIME-Version: 1.0
X-MS-Exchange-MessageSentRepresentingType: 1
X-MS-PublicTrafficType: Email
X-MS-TrafficTypeDiagnostic: VI1P195MB0784:EE_|VI2P195MB2519:EE_
X-MS-Office365-Filtering-Correlation-Id: 06b5af7f-3710-409a-a364-08dc3c6520cd
X-MS-Exchange-SLBlob-MailProps:
VTa9p188PRPmtbTKRq4VZgbmEdFmL2f+9kw6p8TmZhSFYZzTcJ97AGl9vfnETKB5ClQlm8DQYQizSuT5GTSjJW55
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info:
f8DLMO2XarySzi80DQ0Qo3I8D/7fzyE2RBTz/NwNOAe6ytBDtyvl7qWGkT
X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1
X-MS-Exchange-AntiSpam-MessageData-0:
=?utf-8?B?VGdZN2drN2VkMmlIU3djNFpjV2hJWFdmc1NJQ1BFT2ZxMW1sWktWeUVCdjhV?=
=?utf-8?B?WnhhNG5HQm1PRUVKZ3NQQnhuMTduZFoyYnJGZzNDRE9IZ3R3WC9zcnFvUlk4?=

X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-49ed2.templateTenant
X-MS-Exchange-CrossTenant-Network-Message-Id: 06b5af7f-3710-409a-a364-08dc3c6520cd
X-MS-Exchange-CrossTenant-AuthSource: VI1P195MB0784.EURP195.PROD.OUTLOOK.COM
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Mar 2024 16:07:09.2535
(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: VI2P195MB2519
X-Spam-Status: No, score=0.8
X-Spam-Score: 8
X-Spam-Bar: /
X-Ham-Report: Spam detection software, running on the system "xxx",
has NOT identified this incoming email as spam. The original
message has been attached to this so you can view it or label
similar future email. If you have any questions, see
root\@localhost for details.
Content preview: Apple Mail sent this email to unsubscribe from the message
“[List-Unsubscribe[a7ffed01,xxx@hotmail.co.uk]]”.
Content analysis details: (0.8 points, 5.0 required)
pts rule name description
---- ---------------------- --------------------------------------------------
-0.0 BAYES_40 BODY: Bayes spam probability is 20 to 40%
[score: 0.3679]
0.8 KAM_COUK Scoring .co.uk emails higher due to poor registry
security.
0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail
provider
[xxx[at]hotmail.co.uk]
-0.0 SPF_PASS SPF: sender matches SPF record
-0.0 SPF_HELO_PASS SPF: HELO matches SPF record
0.0 KAM_DMARC_STATUS Test Rule for DKIM or SPF Failure with Strict
Alignment
0.0 TVD_SPACE_RATIO No description available.
-0.0 T_SCC_BODY_TEXT_LINE No description available.
X-Spam-Flag: NO

Apple Mail sent this email to unsubscribe from the message =E2=80=9C[List-U=
nsubscribe[a7ffed01,xxx@hotmail.co.uk]]=E2=80=9D.=

I don’t know whether they are getting it unsubscribed despite the error or not either.

Thanks,

Alex
 
Last edited:
Back
Top Bottom