Skip to content

Conversation

Grandi0z
Copy link
Member

Related task

Problem: PHP Fatal error: Call to a member function search() on bool when visiting message list pages with no IMAP servers configured.
Solution: Added error checking to skip failed mailbox connections before calling ->search() method.

@Grandi0z Grandi0z requested a review from kroky September 23, 2025 05:44
$mailbox = Hm_IMAP_List::get_connected_mailbox($id, $this->cache);

if (!$mailbox || !$mailbox->authed()) {
continue; // Skip this server if connection failed
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we also add a feedback msg (warning or error) that server named xyz failed to connect?

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

Successfully merging this pull request may close these issues.

2 participants