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.

mbox to maildir and maildir to mbox

Discussion in 'E-mail Discussions' started by mail2sacp, Jul 3, 2007.

  1. mail2sacp

    mail2sacp Well-Known Member

    Joined:
    Feb 25, 2007
    Messages:
    71
    Likes Received:
    0
    Trophy Points:
    6
    Hello,

    I did mbox to maildir conversion and one of our friend runned it again on another session which caused effect on some of the accounts on our server.
    Some accounts are on maildir and some accounts are on mbox.

    I did "conversion using partially option in /scripts/convert2maildir" but did not helped. So I did converted all on mbox again, now the accounts which were on maildir are now on mbox but they all contains cur and related folders inside mail directory. Now mails are working fine but in webmail I can see cur folders, is there any way by which I can remove that folders for all accounts and get all mails inside it to INBOX?

    Please let me know if anyone knows.
     
  2. WebScHoLaR

    WebScHoLaR Well-Known Member

    Joined:
    Dec 14, 2005
    Messages:
    511
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Planet Earth
    If you have converted to Mbox then the emails should be going to Inbox and not to cur, new and tmp directories. If you don't want Maildir format and want these directories to be deleted you can run following command on the server:

    find /home/*/mail -name cur -type d | xargs rm -rvf
    find /home/*/mail -name tmp -type d | xargs rm -rvf
    find /home/*/mail -name new -type d | xargs rm -rvf
     
  3. mail2sacp

    mail2sacp Well-Known Member

    Joined:
    Feb 25, 2007
    Messages:
    71
    Likes Received:
    0
    Trophy Points:
    6
    Thanks for your nice solution but I have another query before doing this.

    Acctually current mails are getting in inbox only but some mails for some accounts are in CUR still. So how can I get them into inbox without loosing them?

    -Steve
     
  4. jandafields

    jandafields Well-Known Member

    Joined:
    May 6, 2004
    Messages:
    426
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    USA
    cPanel Access Level:
    Root Administrator
    Well, now that you are back to mbox mode, you need to run the conversion again to maildir (without allowing your friend to mess with it). This should put all the messages into maildir format.
     
Loading...

Share This Page