Results 1 to 3 of 3

Thread: Number of emails (email count)

  1. #1
    Join Date
    Oct 2008
    Location
    Portugal, Castelo Branco
    Posts
    63
    Rep Power
    7

    Default Number of emails (email count)

    Hi all !

    Is it possible to know the number of emails (email count) a user has in it's account ?
    Including all folders ?

    Cheers,

    Bruno

  2. #2
    Join Date
    Sep 2005
    Posts
    48
    Rep Power
    10

    Default

    Try this...

    Code:
    for j in $( zmprov -l gaa | egrep -v "^(spam|ham)"); do total=0; echo -n "Total for $j = "; for i in $( zmmailbox -z -m "$j" gaf | awk '{print $4}' | egrep -o "[0-9]+" ); do total=$(( total + i )); done; echo "$total"; done

  3. #3
    Join Date
    Jul 2011
    Posts
    35
    Rep Power
    4

    Default

    Quote Originally Posted by simonb View Post
    Try this...

    Code:
    for j in $( zmprov -l gaa | egrep -v "^(spam|ham)"); do total=0; echo -n "Total for $j = "; for i in $( zmmailbox -z -m "$j" gaf | awk '{print $4}' | egrep -o "[0-9]+" ); do total=$(( total + i )); done; echo "$total"; done
    Hello friend...

    I try to use the script, but always show to me all messages in double...If the user has just 10 messages, show me 20! I can figure out why!

    Can you help me??

    Thank you

Similar Threads

  1. Replies: 1
    Last Post: 01-03-2011, 10:03 PM
  2. received two identical emails when setting email forward
    By tiger2000 in forum Administrators
    Replies: 0
    Last Post: 11-09-2010, 01:58 AM
  3. need advice on configuring zimbra to work with fax server
    By pheonix1t in forum Administrators
    Replies: 0
    Last Post: 07-11-2007, 08:46 PM
  4. upgrade to 4.0.3 antispam does'nt work
    By lucanannipieri in forum Administrators
    Replies: 14
    Last Post: 11-07-2006, 03:56 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •