Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running into intermittent "Cannot reopen mailbox XYZ" #551

Open
fresent opened this issue Dec 23, 2022 · 2 comments
Open

Running into intermittent "Cannot reopen mailbox XYZ" #551

fresent opened this issue Dec 23, 2022 · 2 comments
Labels

Comments

@fresent
Copy link

fresent commented Dec 23, 2022

ddeboer/imap version : 1.14.2
PHP version : 8.0
IMAP provider : Outlook, Hotmail and cPanel

Only for Outlook/Hotmail and cPanel based IMAP (ESP) the service seems to be spitting "Cannot reopen mailbox XYZ" intermittently.

$server = new Server($hostname, $port, flags:'/imap/ssl/novalidate-cert', retries:2);
$connection = $server->authenticate($username, $password);
$allMailboxes = $connection->getMailboxes();
foreach ($allMailboxes as $mailbox) {
        if($mailboxTobeFound == $mailbox->getName()){
               $today = new \DateTimeImmutable();
               $cutOffDaysAgo = $today->sub(new \DateInterval('P'.$cutOffDays.'D'));
               $search = new SearchExpression();
               $search->addCondition(new \Ddeboer\Imap\Search\Text\Subject('subject filter'));
               $search->addCondition(new \Ddeboer\Imap\Search\Date\Before($cutOffDaysAgo));
               $allMessages = $mailbox->getMessages($search);
        }
}

The tested outlook/hotmail were on free version, and not on enterprise version of microsoft email.

@fresent fresent added the bug label Dec 23, 2022
@necmettin
Copy link

I have the same problem with Office365 accounts.

@imzhi
Copy link

imzhi commented Oct 17, 2023

I have the same problem with 163 email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants