Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. Mailbox Import (Csv) Error: "Line 1 has wrong column count. Expecting 4"

Mailbox Import (Csv) Error: "Line 1 has wrong column count. Expecting 4"

Scheduled Pinned Locked Moved Solved Support
emailimportexport
6 Posts 2 Posters 682 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    p44
    translator
    wrote on last edited by joseph
    #1

    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.

    alt text

    1 Reply Last reply
    1
    • nebulonN nebulon marked this topic as a question on
    • nebulonN Away
      nebulonN Away
      nebulon
      Staff
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      2
      • nebulonN Away
        nebulonN Away
        nebulon
        Staff
        wrote on last edited by
        #3

        Will mark this as solved as the feature is removed then.

        1 Reply Last reply
        1
        • nebulonN nebulon has marked this topic as solved on
        • P Offline
          P Offline
          p44
          translator
          wrote on last edited by p44
          #4

          @nebulon will you remove the whole import feature or only the one by .csv, keeping import with json file?

          1 Reply Last reply
          0
          • nebulonN Away
            nebulonN Away
            nebulon
            Staff
            wrote on last edited by
            #5

            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.

            1 Reply Last reply
            1
            • P Offline
              P Offline
              p44
              translator
              wrote on last edited by
              #6

              @nebulon

              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!

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Bookmarks
              • Search