php-imap
php-imap copied to clipboard
fetch_overview does not allow select range with *
The used code:
$imapPath = '{' . $imap_host . ':' . $imap_port . '/imap/' . $imap_encryption . '}' . $mailbox;
$mailboxConnection = new Mailbox(
$imapPath,
$this->imap_username,
$this->imap_password,
null, // Directory, where attachments will be saved (optional)
'UTF-8', // Server encoding (optional),
true,
true,
);
$mails = Imap::fetch_overview(
$mailboxConnection->getImapStream(),
'1:*',
FT_UID
);
This solved my issue.