The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Converting stored mbox mail to maildir format?

Discussion in 'E-mail Discussions' started by wzd, Mar 23, 2007.

  1. wzd

    wzd Well-Known Member

    Dec 16, 2005
    Likes Received:
    Trophy Points:
    South Africa
    cPanel Access Level:
    Root Administrator
    Hi guys,

    I've got a bit of a problem, We've recently reloaded and converted to maildir with ConfigServer's mailscanner (which is running beautifully) and realised that there are some accounts on our old harddrive inside another rescue unit that has emails we need. :(

    The directory listing of the user is: shows the following: (THIS IS WHAT WE HAVE ON THE BACKUP DRIVE)

     89152 -rw-r-----   1 root  wheel  91214946 Mar 23 17:51 Coldstorage
         4 -rw-r-----   1 root  wheel      2693 Mar 23 17:51 Sent
        36 -rw-r-----   1 root  wheel     35068 Mar 23 17:51 Trash
      6768 -rw-r-----   1 root  wheel   6912444 Mar 23 17:51 inbox
       320 -rw-r-----   1 root  wheel    295799 Mar 23 17:50 spam
    However the current directory listing of the same user (on our new /home partition) is:
    4 drwx------  2 todor todor 4096 Mar 24 02:20 cur/
    4 -rw-r--r--  1 todor todor   15 Mar 24 02:20 maildirsize
    4 drwx------  2 todor todor 4096 Mar 24 02:20 new/
    4 drwx------  2 todor todor 4096 Mar 24 02:20 tmp/
    I've (stupidly) tried to just copy over the files into the various directories under the users home/mail/domain directory but of course that won't work :eek:

    What i want to know is how to convert the stored emails in all the backed up mbox files to maildir readable, :confused:

  2. chirpy

    chirpy Well-Known Member

    Jun 15, 2002
    Likes Received:
    Trophy Points:
    Go on, have a guess
    After you've copied over the file simply rerun:


    There'll be an option to convert any mbox files to maildir.

Share This Page