Mailbox Import (Csv) Error: "Line 1 has wrong column count. Expecting 4"
-
Hello all,
I don't know if this could be a possible bug.
When I import a Cloudron generated Csv to import mailboxes, Cloudron import gives this error "Line 1 has wrong column count. Expecting 4".
When I do the same with Json Export-Import, all works fine.
-
-
That is a bug, the import feature is not well maintained and it will get actually removed with next version. The main reason is, that the REST API should be preferrred for batch importing as it is much more flexible: https://docs.cloudron.io/api.html#tag/Mail
-
-
Similarily to the user export/import, we have removed both by now. The main reason is that there are various edge-cases around conflicts and also having another format to maintain, while the REST api already covers everything solidly.
For convenience maybe some other cli tool for import/export using that REST api may be useful. The API is mostly stable so if this is not just one-time import/export then a custom shell script with curl would be probably better suited already.
-
Okay, thank you very much.
I think it could be good also keep some options for non-developers that allow users to import and export mailboxes, avoiding REST APIs that require deep knowledge of development. This aligns with part of Cloudron's payoff: 'Self-hosting has never been simpler.'
Thank you very much!