# phpman > man > mailstat(1)

[MAILSTAT(1)](https://www.chedong.com/phpMan.php/man/MAILSTAT/1/markdown)                            General Commands Manual                           [MAILSTAT(1)](https://www.chedong.com/phpMan.php/man/MAILSTAT/1/markdown)



## NAME
       mailstat - shows mail-arrival statistics

## SYNOPSIS
       **mailstat** [-klmots] [logfile]

## DESCRIPTION
       **mailstat**  parses  a procmail-generated $LOGFILE and displays a summary about the messages de‐
       livered to all folders (total size, average size, nr of messages).  The $LOGFILE is truncated
       to  zero length, unless the **-k** option is used.  Exit code 0 if mail arrived, 1 if no mail ar‐
       rived.

## OPTIONS
       _-k_     keep logfile intact

       _-l_     long display format

       _-m_     merge any errors into one line

       _-o_     use the old logfile

       _-t_     terse display format

       _-s_     silent in case of no mail

## NOTES
       Customise to your heart's content, this program is only provided as a guideline.

## AUTHOR
       This manual page was written by Santiago Vila <<sanvila@debian.org>> for the  Debian  GNU/Linux
       distribution (but may be used by others).



                                                                                         [MAILSTAT(1)](https://www.chedong.com/phpMan.php/man/MAILSTAT/1/markdown)
