nextcloud / nextcloud/mail

Search cannot handle large inboxes

Open
#10,250 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

0. to triage bug
Dominant language
JavaScript
Stars
1k
Forks
348
Avg merge
12h 28m
Merged PRs (30d)
91

Description

Steps to reproduce

Search any thing on inbox with with a large inbox (in test over 10k messages) results in Could Not Open Mailbox

Expected behavior

Search should retrieve and display results of query.

Other clients (SnappyMail, RoundCube, SOGo, Google Mail, Thunderbird) have no issue returning results relatively quickly.

Actual behavior

After a long wait time, screen returns Could Not Open Mailbox.

Mail app version

3.7.8

Mailserver or service

dovecot

Operating system

Ubunty 20.04

PHP engine version

PHP 8.1

Web server

Apache (supported)

Database

MariaDB

Additional info

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the search in a Dovecot inbox with more than 10,000 messages using the reported PHP 8.1 and MariaDB setup, then trace the path that produces “Could Not Open Mailbox.” Done means queries return and display results without the long wait or mailbox error.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, mariadb, php
Domain
backend, search
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.