Update URL for Kerberos FAQ
[heimdal.git] / appl / popper / pop_stat.c
blob799245a27d62382a28ca187471e6e87706d2a77a
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 */
7 #include <popper.h>
8 RCSID("$Id$");
11 * stat: Display the status of a POP maildrop to its client
14 int
15 pop_stat (POP *p)
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));