php-imap icon indicating copy to clipboard operation
php-imap copied to clipboard

fetch_overview does not allow select range with *

Open michalcharvat opened this issue 1 year ago • 1 comments

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
);

michalcharvat avatar Mar 16 '23 17:03 michalcharvat

This solved my issue.

swim89 avatar Apr 16 '23 21:04 swim89