Daaaawno mnie tu nie było

Ostatnio walczę ze skryptem który, przynajmniej w teorii powinien mi wybierać maile z konta pocztowego po message id
skomponowałem takie coś
// Set your timezone date_default_timezone_set('GMT'); // Set your IMAP server details $hostname = '{imap.gmail.com:993/imap/ssl}'; $username = 'phpamator@mojaskrzynka.com'; $password = 'haseleczkomoje'; // Open the specified folder $mailbox = imap_open($hostname, $username, $password); // Check if the connection was successful if (!$mailbox) { } // Specify the Message-ID you want to search for $messageId = '<65733ef44b55c_1702123456@myserverek.com>'; // Search for the email with the given Message-ID $searchResult = imap_search($mailbox, 'HEADER Message-ID "' . $messageId . '"', SE_UID); // Output search result for debugging // Fetch the email details using UID if ($searchResult) { // Fetch details of the first (and only) matching email $emailDetails = imap_fetch_overview($mailbox, $searchResult[0], FT_UID); // Output email details } else { } // Close the IMAP connection imap_close($mailbox);
wszystko fajnie jak czytam bez ID a jak próbuję wyszukać po id to dostaję "..I.," znaczy nic nie zwraca.
Macie jakieś doświadczenie z IMAPem z php ?
Podpowiedzcie coś
Pozdrówka
Nikt nic

