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.
8 __RCSID("$Heimdal: pop_rset.c 4794 1998-04-23 17:41:49Z joda $"
12 * rset: Unflag all messages flagged for deletion in a POP maildrop
18 MsgInfoList
* mp
; /* Pointer to the message info list */
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 */
29 /* Reset the last-message-access flag */
32 return (pop_msg(p
,POP_SUCCESS
,"Maildrop has %u messages (%ld octets)",
33 p
->msg_count
, p
->drop_size
));