<?php
declare(strict_types=1);

namespace FreshCloud\Mail\ImapCommands;

use DateTimeImmutable;

final readonly class MessageInfo
{
    public function __construct(
        public int $uid,
        public string $folder,
        public string $subject,
        public string $fromAddress,
        public ?string $fromName = null,
        public ?DateTimeImmutable $date = null,
        public int $size = 0,
        public array $flags = [],
        public bool $hasAttachments = false,
        public ?string $messageId = null,
        public ?string $preview = null,
    ) {}
}