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. Strange email folder naming behavior/errors

Strange email folder naming behavior/errors

Scheduled Pinned Locked Moved Support
mailimapimportimapsync
6 Posts 3 Posters 1.0k Views 3 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.
    • imc67I Offline
      imc67I Offline
      imc67
      translator
      wrote on last edited by girish
      #1

      Today I wanted to migrate a Gsuite email box to Cloudron. The box contained about 12GB/45k mails in about 50 folders.

      The naming convention of the folders were like:

      01. "main"
      01.01. "sub 1" (not nested)
      01.02. "sub 2" (not nested)
      

      In an email client I tried to move such a folder from current box to new box. This went awfully wrong!

      I checked Roundcube what was/wasn't created in Cloudron:

      folder named 01
      ... nested folder named: 01
      ... ... nested folder named: "sub 1" (Nested)

      In the first 2 folders you're not able to store mails, only in the "last" one and the emails didn't got moved (actually they disappeared).

      When creating such a folder in Roundcube you get an error that a . "dot" is not allowed.

      Isn't it very strange that you're not able to use dots in a folder name and that it creates subfolders based on those dots when created in a client?

      The only workaround was to rename in Gsuite all the 50 folders and then folder by folder move everything and double double check if everything moved correctly.

      Kind regards,

      Marcel.

      murgeroM 1 Reply Last reply
      0
      • imc67I imc67

        Today I wanted to migrate a Gsuite email box to Cloudron. The box contained about 12GB/45k mails in about 50 folders.

        The naming convention of the folders were like:

        01. "main"
        01.01. "sub 1" (not nested)
        01.02. "sub 2" (not nested)
        

        In an email client I tried to move such a folder from current box to new box. This went awfully wrong!

        I checked Roundcube what was/wasn't created in Cloudron:

        folder named 01
        ... nested folder named: 01
        ... ... nested folder named: "sub 1" (Nested)

        In the first 2 folders you're not able to store mails, only in the "last" one and the emails didn't got moved (actually they disappeared).

        When creating such a folder in Roundcube you get an error that a . "dot" is not allowed.

        Isn't it very strange that you're not able to use dots in a folder name and that it creates subfolders based on those dots when created in a client?

        The only workaround was to rename in Gsuite all the 50 folders and then folder by folder move everything and double double check if everything moved correctly.

        Kind regards,

        Marcel.

        murgeroM Offline
        murgeroM Offline
        murgero
        App Dev
        wrote on last edited by murgero
        #2

        @imc67 IMAP is funky with special characters in folder names, especially with Outlook. Avoid using !@#$%^&*(){}[]:;"'<>?/|\ Periods are gonna be hit or miss, so avoid those as well. Instead, dashes and Underscores should work:

        01_01-02
        01_01-03
        
        etc etc
        

        I'd like to point out that this is an issue with IMAP and not cloudron.

        --
        https://urgero.org
        ~ Professional Nerd. Freelance Programmer. ~

        1 Reply Last reply
        0
        • imc67I Offline
          imc67I Offline
          imc67
          translator
          wrote on last edited by
          #3

          @murgero aha, then Gsuite/Gmail is able to do this, will take note of this.

          murgeroM 1 Reply Last reply
          0
          • imc67I imc67

            @murgero aha, then Gsuite/Gmail is able to do this, will take note of this.

            murgeroM Offline
            murgeroM Offline
            murgero
            App Dev
            wrote on last edited by
            #4

            @imc67 gsuite / gmail is not IMAP, just to note. They support an IMAP-compatible system for syncing to Outlook and other mail clients, but gmail itself is not IMAP.

            --
            https://urgero.org
            ~ Professional Nerd. Freelance Programmer. ~

            1 Reply Last reply
            2
            • girishG Offline
              girishG Offline
              girish
              Staff
              wrote on last edited by girish
              #5

              Gmail import is a complicated topic and as @murgero said gmail has a IMAP compat layer but it's internal storage is not IMAP.

              See https://imapsync.lamiral.info/FAQ.d/FAQ.Gmail.txt for detailed overview of importing. Also, I am not on expert on this topic since this is a bit outside the scope of Cloudron.

              1 Reply Last reply
              1
              • girishG Offline
                girishG Offline
                girish
                Staff
                wrote on last edited by girish
                #6

                BTW, for the "dot" thing, the mailbox separator in Cloudron is ".". This is why folders with dot don't work. If you create a folder named "foo.bar.baz", it is like subfolder bar under foo and subfolder baz under bar.

                While using "." as a seperator is not a bug as such, using "/" as a separator instead of "." would have been a better choice for Cloudron but we didn't know this when we started (sadly, "." is the dovecot default too). And also using "/" as separator is required for mailbox sharing to work. We are slowly working towards moving the separator to be "/", step by step.

                1 Reply Last reply
                3
                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