Environment (please complete the following information):
PHP IMAP version: dev-master
PHP Version: 7.4
Type of execution: CLI
Describe the bug
The latest reply time of the email is 17:55 on January 2, 2023, but the time I read it is 05:02 on December 27, 2022. Why is the time to get the email previous?
The used code:
$mailbox = new \PhpImap\Mailbox(
'{mail.abyshoes.com:993/imap/ssl/novalidate-cert}INBOX', // IMAP server and mailbox folder
'mail@abyshoes.com', // Username for the before configured mailbox
'********', // Password for the before configured username
$this->savePath, // Directory, where attachments will be saved (optional)
'UTF-8', // Server encoding (optional)
true, // Trim leading/ending whitespaces of IMAP path (optional)
false // Attachment filename mode (optional; false = random filename; true = original filename)
);
$mailId = 2798601;
$mail = $mailbox->getMail($mailId, false);
dump($mail->headers);
die();
The headers of the parsed email, if required and possible (only, if it's NOT confidential):
Delivered-To: mail@abyshoes.com
Received: from iZj6cdljn9u61oxgdblg0iZ
by iZj6ccbk1bxo1foz1m5vi1Z with LMTP id aDczHrvBsmObGAAAJnNHSg
for ; Mon, 02 Jan 2023 19:36:27 +0800
Received: from out20-63.mail.aliyun.com (out20-63.mail.aliyun.com [115.124.20.63])
by iZj6cdljn9u61oxgdblg0iZ (Postfix) with ESMTPS id 3B5CF21AE7
for ; Mon, 2 Jan 2023 19:36:07 +0800 (CST)
DKIM-Filter: OpenDKIM Filter v2.11.0 iZj6cdljn9u61oxgdblg0iZ 3B5CF21AE7
Authentication-Results: iZj6cdljn9u61oxgdblg0iZ;
dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="e2XCMWhQ"
X-Alimail-AntiSpam:AC=PASS;BC=-1|-1;BR=01201311R701e2;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018047199;MF=selecionandoamigos@gmail.com;NM=1;PH=DM;RN=1;RT=1;SC=80;SR=1;TI=MTA_---.QidqEUE_1672659349;
Received: from mail-lf1-f42.google.com(mailfrom:selecionandoamigos@gmail.com ip:209.85.167.42)
by mx1.aliyun-inc.com;
Mon, 02 Jan 2023 19:35:50 +0800
Received: by mail-lf1-f42.google.com with SMTP id j17so31741891lfr.3
for ; Mon, 02 Jan 2023 03:35:50 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20210112;
h=to:subject:message-id:date:from:in-reply-to:references:mime-version
:from:to:cc:subject:date:message-id:reply-to;
bh=LDf1TGbIMtsPN1RKRTGwW/lejf9JZusQsYKFabO3To8=;
b=e2XCMWhQugF46gr9uvQKiOgGb/uOf1bJG6ewJvv+FET2X+Kfbo1JXHAC+UhItyy2NH
tdXcBBfku6hxR3PamTgqjnChbyreeJij8yBC64iDxO0v69GTcni+2FRmyzgWdsdtxkTS
tb0ueHic+NsowPUZMgWbCq6S6yhsgtWiFsptYsO+9d1UUjMC0Ks6ZTFh8qA31/1w4Jea
0YvRwZB4GsOKmelbry/1Fh7UcMNXIUzUIAZ+kWvs9GiJlKNsQzbyJPB62h9yhuqMvRKh
cx43r9YbU7dxB4UYhCzAiewMNRtJYJ+DvaAOCdFcv8voA2aL5L3tqs2RlfYqnNC1Q/zY
1gLQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=to:subject:message-id:date:from:in-reply-to:references:mime-version
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
bh=LDf1TGbIMtsPN1RKRTGwW/lejf9JZusQsYKFabO3To8=;
b=WAPV8mgrBuz83apRJlr3moenS0LXuhtoinU/FXDq96nQdrjJBGTzlPITy54UpnoSN2
je8afhWr0fV/MwdPjU2DWdv3T04qeaKhSTJjL4vzWRRzi3vSgdtFw6hQcxgAjAgU82nc
wSf9+GBnGoPuF/x3q3iNyYLvq+xk9Yl6Qk3iBjl5hUMVjfBO99J5FdWK5WXQLv2Gbk6m
jftQH7/+c0bSXeBrnMpTyKFMXDsvCjMaI6CDC1oieXYG4z0riPoxT5yFZp5L7G9/oU8I
0MYt6bFY/ITM+i3g+/TUZo0OR5tjD3j6VeZ8RPQDtqhm8FjEXeEQ0jNKYUKutFFw3TMc
NXsg==
X-Gm-Message-State: AFqh2koQ4Pl36WXmLMIvjIiLG5TQpjhJXkIAYkjNqDjBF2FZyuhmU0C2
qze9f3WUHSBcuOFnz/fWCYYcFSckSv3cL6B5oHaG9s9W
X-Google-Smtp-Source: AMrXdXtT6druIxwNUoISHWNRe2SLc5Y09P9TaoQJv43xPbNj7xFByLCfonQFz2o9BmK3BTuGBQUNm3lxI5txE4kTwts=
X-Received: by 2002:a05:6512:2528:b0:4b6:e956:54a2 with SMTP id
be40-20020a056512252800b004b6e95654a2mr2113189lfb.663.1672659348726; Mon, 02
Jan 2023 03:35:48 -0800 (PST)
MIME-Version: 1.0
References:
In-Reply-To:
From: selecionando amigos
Date: Mon, 26 Dec 2022 18:02:43 -0300
Message-ID:
Subject: =?UTF-8?Q?Re=3A_compra_n=C3=A3o_concretiza?=
To: Senay
Content-Type: multipart/alternative; boundary="0000000000004fa86805f1465a67"
Expected behavior
The email date should be equal to the one circled above
Environment (please complete the following information):
Describe the bug The latest reply time of the email is 17:55 on January 2, 2023, but the time I read it is 05:02 on December 27, 2022. Why is the time to get the email previous?
The used code:
The headers of the parsed email, if required and possible (only, if it's NOT confidential):
Expected behavior
The email date should be equal to the one circled above