$twoDigitString = $twoDigitStringMin . $verpSeparator;
// a common-for-all-actions regex to handle CiviCRM 2.2 address patterns
- $regex = '/^' . $emailLocalPart . '(b|c|e|o|r|u)' . $twoDigitString . '([0-9a-f]{16})@' . $emailDomain . '$/';
+ $regex = '/^' . $emailLocalPart . '(b|c|e|o|r|u)' . $twoDigitString . '([0-9a-z]{16})@' . $emailDomain . '$/';
// a tighter regex for finding bounce info in soft bounces’ mail bodies
- $rpRegex = '/Return-Path:\s*' . $emailLocalPart . '(b)' . $twoDigitString . '([0-9a-f]{16})@' . $emailDomain . '/';
+ $rpRegex = '/Return-Path:\s*' . $emailLocalPart . '(b)' . $twoDigitString . '([0-9a-z]{16})@' . $emailDomain . '/';
// a regex for finding bound info X-Header
- $rpXHeaderRegex = '/X-CiviMail-Bounce: ' . $emailLocalPart . '(b)' . $twoDigitString . '([0-9a-f]{16})@' . $emailDomain . '/i';
+ $rpXHeaderRegex = '/X-CiviMail-Bounce: ' . $emailLocalPart . '(b)' . $twoDigitString . '([0-9a-z]{16})@' . $emailDomain . '/i';
// CiviMail in regex and Civimail in header !!!
$matches = NULL;
foreach ($this->mail->to as $address) {
Return-Path: <>
-X-Original-To: b.2.1.aaaaaaaaaaaaaaaa@donate.example.org
-Delivered-To: b.2.1.aaaaaaaaaaaaaaaa@example.com
+X-Original-To: b.2.1.aaaaaaaaaaaaaaaz@donate.example.org
+Delivered-To: b.2.1.aaaaaaaaaaaaaaaz@example.com
Received: from mx1001.example.org (mx1001.example.org [127.0.0.1])
by civicrm.example.org (Postfix) with ESMTPS id 381BD2E95DC
-for <b.aaaaaaaaaaaaaaaa.aaaaaaaaaaaaaaaa@donate.example.org>; Sun, 3 Dec 2017 11:29:12 +0000 (UTC)
+for <b.aaaaaaaaaaaaaaaz.aaaaaaaaaaaaaaaz@donate.example.org>; Sun, 3 Dec 2017 11:29:12 +0000 (UTC)
Received: from mail-qt0-x241.example.org ([1111:2222:3333:c0d::241]:34862)
by mx1001.example.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
(Exim 4.84_2)
id 1eLSSM-0003Vj-7E
-for b.aaaaaaaaaaaaaaaa.b322af9943c6facb@donate.example.org; Sun, 03 Dec 2017 11:29:12 +0000
+for b.aaaaaaaaaaaaaaaz.b322af9943c6facb@donate.example.org; Sun, 03 Dec 2017 11:29:12 +0000
Received: by mail-qt0-x241.example.org with SMTP id u10so18073433qtg.2
- for <b.aaaaaaaaaaaaaaaa.b322af9943c6facb@donate.example.org>; Sun, 03 Dec 2017 03:29:10 -0800 (PST)
+ for <b.aaaaaaaaaaaaaaaz.b322af9943c6facb@donate.example.org>; Sun, 03 Dec 2017 03:29:10 -0800 (PST)
X-Received: by 127.0.0.1 with SMTP id f2mr16998556qth.140.1512300550024;
Sun, 03 Dec 2017 03:29:10 -0800 (PST)
Content-Type: multipart/report; boundary="f403043ae60413e73f055f6de970"; report-type=delivery-status
Received: by 127.0.0.1 with SMTP id xxxxxxxx.140; Sun, 03 Dec 2017
03:29:10 -0800 (PST)
From: Mail Delivery Subsystem <mailer-daemon@example.com>
-To: b.2.1.aaaaaaaaaaaaaaaa@example.com
+To: b.2.1.aaaaaaaaaaaaaaaz@example.com
Auto-Submitted: auto-replied
Subject: Delivery Status Notification (Failure)
References: <xxxxxxxxxxxxxxxxxxxxxxxx@civicrm-mailer>
(Warning: This link will take you to a third-party site)
The response from the remote server was:
-552 5.2.0 aaaaaaaaaaaaaaaa - bbbbbbbbbbbbbbbb This message has been =
+552 5.2.0 aaaaaaaaaaaaaaaz - bbbbbbbbbbbbbbbb This message has been =
rejected due to content judged to be spam by the internet community IB212 -=
If you feel this is in error, please submit a request using the following =
page. <https://checkspam.secureserver.net/?sid=3Dxxxxxxxxxxxx&mid=3Dxxxxx=
<td align=3D"left" style=3D"padding:48px 10px">
The response from the remote server was:<br/>
<p style=3D"font-family:monospace">
-552 5.2.0 aaaaaaaaaaaaaaaa - bbbbbbbbbbbbbbbbbbb This message has been =
+552 5.2.0 aaaaaaaaaaaaaaaz - bbbbbbbbbbbbbbbbbbb This message has been =
rejected due to content judged to be spam by the internet community IB212 -=
If you feel this is in error, please submit a request using the following =
page. <https://checkspam.secureserver.net/?sid=3Dxxxxxxxx&m=
Content-Type: message/global-delivery-status
Reporting-MTA: dns; example.com
-Received-From-MTA: dns; b.aaaaaaaaaaaaaaaa.b322af9943c6facb@donate.example.org
+Received-From-MTA: dns; b.aaaaaaaaaaaaaaaz.b322af9943c6facb@donate.example.org
Arrival-Date: Sun, 03 Dec 2017 03:29:08 -0800 (PST)
X-Original-Message-ID: <xxxxxxxxxxxxxxxxxxxxxxxx@civicrm-mailer>
Action: failed
Status: 5.2.0
Remote-MTA: dns; smtp.secureserver.net (22.33.44.55, the relay for the domain.)
-Diagnostic-Code: smtp; 552 5.2.0 aaaaaaaaaaaaaaaaa - bbbbbbbbbbbbbbbbbbb This message has been rejected due to content judged to b
+Diagnostic-Code: smtp; 552 5.2.0 aaaaaaaaaaaaaaaza - bbbbbbbbbbbbbbbbbbb This message has been rejected due to content judged to b
e spam by the internet community IB212 - If you feel this is in error, please submit a request using the following page. <https://che
-ckspam.secureserver.net/?sid=aaaaaaaaaaaaaaaaaaa&mid=bbbbbbbbbbbbbbbbbbb>
+ckspam.secureserver.net/?sid=aaaaaaaaaaaaaaazaaa&mid=bbbbbbbbbbbbbbbbbbb>
Last-Attempt-Date: Sun, 03 Dec 2017 03:29:10 -0800 (PST)
--f403043ae60413e73f055f6de970
X-Received: by 127.0.0.1 with SMTP id f2mr16998507qth.140.1512300548827;
Sun, 03 Dec 2017 03:29:08 -0800 (PST)
-Return-Path: <b.aaaaaaaaaaaaaaaa.b322af9943c6facb@donate.example.org>
+Return-Path: <b.aaaaaaaaaaaaaaaz.b322af9943c6facb@donate.example.org>
Received: from civicrm.example.org (civicrm.example.org. [111.222.33.44])
by mx.example.org with ESMTPS id w61si1072744qte.335.2017.12.22.33.44.55
for <bob@example.com>