Skip to main content

List all email accounts with size and restriction status

Comments

3 comments

  • cPRex Jurassic Moderator
    Hey there! My first thought on this, is that I don't get those errors on a test machine. Can you run just the find portion and see what output you get that could be causing confusion in the for loop? find /var/cpanel/users -type f | egrep -o '[a-zA-Z0-9]+$' | grep -v system
    You'll also likely want to look into the user-level API call of Return email accounts with disk information as that shows the disk usage and restriction status in one command.
    0
  • refueledinc
    find
    output all the cpanel users without error. Thanks for the API docs. I'll see what I can do with that.
    0
  • cPRex Jurassic Moderator
    Interesting - if "find" didn't give anything odd, I would expect the whole for loop to work well. I'd still try working with that uapi call as that gives you all the information you want in one command, but let us know what you come up with!
    0

Please sign in to leave a comment.