Skip to content

🪲: stalwart-cli import fails to import Mailbox++ from Dovecot due to uppercase INBOX folder name #2277

@jabdoa2

Description

@jabdoa2

What happened?

I tried to import an Mailbox++ mailbox from Dovecot.

# stalwart-cli import messages -f maildir test_user Mail    
[1/4] Parsing mailbox...
[2/4] Fetching existing mailboxes for account...
[3/4] Creating missing mailboxes...
Failed to create mailbox: Set failed: invalidProperties: A mailbox with name 'INBOX' already exists. (properties: name)

This passes if I rename all .INBOX and .INBOX.xxx folders to .Inbox and .Inbox.xxx

How can we reproduce the problem?

I can reproduce the problem by doing the following steps:

  • Install Dovecot and configure it to use the (default) Mailbox++ format
  • Receive some mails
  • Try to import the Mailbox++ folder to stalwart using stalwart-cli import

Version

v0.13.x

What database are you using?

SQLite

What blob storage are you using?

SQLite

Where is your directory located?

Internal

What operating system are you using?

Docker

Relevant log output

See above.

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions