chore: Update copyright year from 2025 to 2026 across core files
- Updated copyright headers in 3,055 core application files - Changed 'Copyright (C) 2014-2025' to 'Copyright (C) 2014-2026' - Added 123 new files from EspoCRM core updates - Removed 4 deprecated files - Total changes: 61,637 insertions, 54,283 deletions This is a routine maintenance update for the new year 2026.
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
* This file is part of EspoCRM.
|
||||
*
|
||||
* EspoCRM – Open Source CRM application.
|
||||
* Copyright (C) 2014-2025 EspoCRM, Inc.
|
||||
* Copyright (C) 2014-2026 EspoCRM, Inc.
|
||||
* Website: https://www.espocrm.com
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
@@ -30,6 +30,7 @@
|
||||
namespace Espo\Core\Mail;
|
||||
|
||||
use Espo\Core\Mail\Account\Storage;
|
||||
use Espo\Core\Mail\Exceptions\ImapError;
|
||||
use Espo\Core\Mail\Message\Part;
|
||||
|
||||
use RuntimeException;
|
||||
@@ -42,11 +43,15 @@ class MessageWrapper implements Message
|
||||
/** @var ?string[] */
|
||||
private ?array $flagList = null;
|
||||
|
||||
/**
|
||||
* @throws ImapError
|
||||
*/
|
||||
public function __construct(
|
||||
private int $id,
|
||||
private ?Storage $storage = null,
|
||||
private ?Parser $parser = null,
|
||||
private ?string $fullRawContent = null
|
||||
private ?string $fullRawContent = null,
|
||||
private bool $peek = false,
|
||||
) {
|
||||
if ($storage) {
|
||||
$data = $storage->getHeaderAndFlags($id);
|
||||
@@ -108,7 +113,7 @@ class MessageWrapper implements Message
|
||||
throw new RuntimeException();
|
||||
}
|
||||
|
||||
$this->rawContent = $this->storage->getRawContent($this->id);
|
||||
$this->rawContent = $this->storage->getRawContent($this->id, $this->peek);
|
||||
}
|
||||
|
||||
return $this->rawContent ?? '';
|
||||
|
||||
Reference in New Issue
Block a user