home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / NEXTSTEP / UNIX / Mail / qpopper-2.4-MIHS / pop_stat.c < prev    next >
Encoding:
C/C++ Source or Header  |  1997-09-11  |  703 b   |  29 lines

  1. /*
  2.  * Copyright (c) 1989 Regents of the University of California.
  3.  * All rights reserved.  The Berkeley software License Agreement
  4.  * specifies the terms and conditions for redistribution.
  5.  */
  6.  
  7. /*
  8.  * Copyright (c) 1997 by Qualcomm Incorporated.
  9.  */
  10.  
  11. #include <config.h>
  12. #include <stdio.h>
  13. #include <sys/types.h>
  14. #include "popper.h"
  15.  
  16. /* 
  17.  *  stat:   Display the status of a POP maildrop to its client
  18.  */
  19.  
  20. int pop_stat (p)
  21. POP     *   p;
  22. {
  23. #ifdef DEBUG
  24.     if (p->debug) pop_log(p,POP_DEBUG,"%d message(s) (%d octets).",p->msg_count-p->msgs_deleted,p->drop_size-p->bytes_deleted);
  25. #endif
  26.     return (pop_msg (p,POP_SUCCESS,
  27.         "%u %u",p->msg_count-p->msgs_deleted,p->drop_size-p->bytes_deleted));
  28. }
  29.