Bump ImapEngine from 1.25.1 to 1.25.2

This commit is contained in:
johnnyq
2026-07-18 11:17:53 -04:00
parent 9cc7e5ff3c
commit 1a3d7a1e0d
32 changed files with 2375 additions and 269 deletions

View File

@@ -62,12 +62,12 @@ trait MessageTrait
public function hasHeader($header): bool
{
return isset($this->headerNames[strtolower($header)]);
return isset($this->headerNames[Utils::asciiToLower($header)]);
}
public function getHeader($header): array
{
$header = strtolower($header);
$header = Utils::asciiToLower($header);
if (!isset($this->headerNames[$header])) {
return [];
@@ -103,7 +103,7 @@ trait MessageTrait
}
}
$value = $this->normalizeHeaderValue($value);
$normalized = strtolower($header);
$normalized = Utils::asciiToLower($header);
$new = clone $this;
if (isset($new->headerNames[$normalized])) {
@@ -135,7 +135,7 @@ trait MessageTrait
}
}
$value = $this->normalizeHeaderValue($value);
$normalized = strtolower($header);
$normalized = Utils::asciiToLower($header);
$new = clone $this;
if (isset($new->headerNames[$normalized])) {
@@ -154,7 +154,7 @@ trait MessageTrait
*/
public function withoutHeader($header): MessageInterface
{
$normalized = strtolower($header);
$normalized = Utils::asciiToLower($header);
if (!isset($this->headerNames[$normalized])) {
return $this;
@@ -218,7 +218,7 @@ trait MessageTrait
}
}
$value = $this->normalizeHeaderValue($value);
$normalized = strtolower($header);
$normalized = Utils::asciiToLower($header);
if (isset($this->headerNames[$normalized])) {
$header = $this->headerNames[$normalized];
$this->headers[$header] = array_merge($this->headers[$header], $value);