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.

weird thing about reading e-mail size.

Discussion in 'E-mail Discussions' started by prixone, Oct 24, 2005.

  1. prixone

    prixone Well-Known Member

    Joined:
    Mar 4, 2004
    Messages:
    107
    Likes Received:
    3
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    du -k /home/domain/mail/domain.com/$user

    i use to use this command to show the size of every e-mail to keep a control.
    because its a webmail system.

    but, after the convertion to maildir it show me like its empty

    what have been change where should i look for the files etc.. ?
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    You have to total up all the files in the subdirectories beneath the one that you used to look in. That is, try:

    du -k --max-depth=1 /home/domain/mail/domain.com/$user
     
  3. prixone

    prixone Well-Known Member

    Joined:
    Mar 4, 2004
    Messages:
    107
    Likes Received:
    3
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    yes solved great but im wondering it was working fine before only with du -k


    but thx :D
     
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    It was working before because prior to the maildir conversion you only had files at that level in the directory tree (e.g. inbox). Now with maildir theirs a new directory hierarchy and the new directive I added counts all the files under that tree.
     
Loading...

Share This Page