The format used by sendmail is commonly referred to as 
"Unix Mailbox Format".  Each mailbox is a single file. 
Each message begins with a line beginning "From ". This 
line is followed by the header section, which ends with 
a null line.  This is followed by the body, which also 
is followed by a null line. 

To count the messages in such a file, you could use:
  cat mailbox_file | grep -Ec "^From "

Hope this helps.
A. Becker



"Ashley M. Kirchner" <[EMAIL PROTECTED]> wrote:
> 
>     Now that the system is up and running, I'm moving on to the next
"problem" block.  I'm using sendmail as my MTA, and I have quotas
enabled on the /home drive.  However, how do I also count the users'
spool files in /var/spool/mail/<user> (where sendmail dumps incoming
messages)?  I want each user's quota to reflect both their account and
their spool file.
> 
> --
> H | "Life is the art of drawing without an eraser." - John Gardner
>  
+--------------------------------------------------------------------
>   Ashley M. Kirchner <mailto:[EMAIL PROTECTED]>   .   303.442.6410
x130
>   Director of Internet Operations / SysAdmin    .     800.441.3873
x130
>   Photo Craft Laboratories, Inc.            .     3550 Arapahoe Ave,
#6
>   http://www.pcraft.com ..... .  .    .       Boulder, CO 80303,
U.S.A.
> 
> 
> 
> 
> 
> _______________________________________________
> Redhat-list mailing list
> [EMAIL PROTECTED]
> https://listman.redhat.com/mailman/listinfo/redhat-list



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to