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#include <popper.h>
8RCSID("$Id$");
9
10/*
11 *  stat:   Display the status of a POP maildrop to its client
12 */
13
14int
15pop_stat (POP *p)
16{
17#ifdef DEBUG
18    if (p->debug) pop_log(p,POP_DEBUG,"%d message(s) (%ld octets).",
19			  p->msg_count-p->msgs_deleted,
20			  p->drop_size-p->bytes_deleted);
21#endif /* DEBUG */
22    return (pop_msg (p,POP_SUCCESS,
23		     "%d %ld",
24		     p->msg_count-p->msgs_deleted,
25		     p->drop_size-p->bytes_deleted));
26}
27