Skip to content

Mail app hangs when moving messages to large mailboxes #7473

@thstyl2000

Description

@thstyl2000

Steps to reproduce

  1. Have an "Archive" folder with > 7000 threads / 9500 messages.
  2. Open the mail app.
  3. Click on a message 3-dot menu.
  4. Move it to "Archive".
  5. Do the same for another message (or a couple more).

Expected behavior

Messages are moved and app behaves normally.

Actual behavior

App hangs browser for around 5 min.

Mail app version

1.14.1

Mailserver or service

dovecot

Operating system

freebsd 13.1

PHP engine version

PHP 8.1

Web server

Apache

Database

MariaDB

Additional info

Nextcloud logs warnings of the type:

[mail] Warning: Controller OCA\Mail\Controller\MailboxesController::sync executed 169 queries.

POST /apps/mail/api/mailboxes/32/sync
from ***.***.***.*** by *** at 2022-10-21T07:56:42+00:00

Firefox profiler shows addEnvelope being called more than 7000 times (capture only ran around half a minute).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions