Converting stored mbox mail to maildir format?

wzd

Well-Known Member
Dec 16, 2005
120
1
168
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: domainname.com/mail/domainname.com shows the following: (THIS IS WHAT WE HAVE ON THE BACKUP DRIVE)

Code:
 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:
Code:
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:

Thanks!!
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
31
473
Go on, have a guess
After you've copied over the file simply rerun:

/scripts/convert2maildir

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