No empty .Rs/.Re
[netbsd-mini2440.git] / crypto / dist / heimdal / appl / popper / pop_rset.c
blob24859d25455b83c6983590bfdcd12bd3374a4ef1
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("$Heimdal: pop_rset.c 4794 1998-04-23 17:41:49Z joda $"
9 "$NetBSD$");
11 /*
12 * rset: Unflag all messages flagged for deletion in a POP maildrop
15 int
16 pop_rset (POP *p)
18 MsgInfoList * mp; /* Pointer to the message info list */
19 int i;
21 /* Unmark all the messages */
22 for (i = p->msg_count, mp = p->mlp; i > 0; i--, mp++)
23 mp->flags &= ~DEL_FLAG;
25 /* Reset the messages-deleted and bytes-deleted counters */
26 p->msgs_deleted = 0;
27 p->bytes_deleted = 0;
29 /* Reset the last-message-access flag */
30 p->last_msg = 0;
32 return (pop_msg(p,POP_SUCCESS,"Maildrop has %u messages (%ld octets)",
33 p->msg_count, p->drop_size));