nextcloud / nextcloud/mail

Could not open mailbox

Open
#5,466 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

stale
Dominant language
JavaScript
Stars
1k
Forks
348
Avg merge
12h 28m
Merged PRs (30d)
91

Description

This problem seems to have happened to someone before but I haven't seen any solution for it.
(reference https://help.nextcloud.com/t/apps-mail-error-loading-mail-messages-argument-1-passed-to-oca-mail-controller-messagescontroller-index-must-be-of-the-type-int-null-given/99739 )

When I open my mailbox, all I see is "Could not open mailbox"
Imap settings are correctly configured and works fine in other clients.
In the nextcloud.log all I can see that referenses to mail is

Argument #1 ($mailboxId) must be of type int, null given

However, I don't know what to do with that information.
Would appreciate som help

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

Start with the error reported from OCA\Mail\Controller\MessagesController::index and inspect how the mailboxId argument is obtained when opening a mailbox. Reproduce the failure using the configured IMAP account and review the related nextcloud.log entry. Done means the mailbox opens without the null mailboxId error.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.