Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

weird thing about reading e-mail size.

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

  1. prixone

    prixone Well-Known Member

    Joined:
    Mar 4, 2004
    Messages:
    111
    Likes Received:
    3
    Trophy Points:
    168
    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,470
    Likes Received:
    21
    Trophy Points:
    463
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. prixone

    prixone Well-Known Member

    Joined:
    Mar 4, 2004
    Messages:
    111
    Likes Received:
    3
    Trophy Points:
    168
    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,470
    Likes Received:
    21
    Trophy Points:
    463
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice