# 2.11BSD#431 - /usr/src/libexec/popper/pop_rset.c

##### Functions

    pop_rset          X

       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: #ifndef lint
       8: static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n";
       9: static char SccsId[] = "@(#)@(#)pop_rset.c	2.1  2.1 3/18/91";
      10: #endif not lint
      11:
      12: #include <stdio.h>
      13: #include <sys/types.h>
      14: #include "popper.h"
      15:
      16: /*
      17:  *  rset:   Unflag all messages flagged for deletion in a POP maildrop
      18:  */
      19:
      20: int pop_rset (p)
      21: POP     *   p;
      22: {
      23:     MsgInfoList     *   mp;         /*  Pointer to the message info list */
      24:     register int        i;
      25:
      26:     /*  Unmark all the messages */
      27:     for (i = p->msg_count, mp = p->mlp; i > 0; i--, mp++)
      28:         mp->del_flag = FALSE;
      29:
      30:     /*  Reset the messages-deleted and bytes-deleted counters */
      31:     p->msgs_deleted = 0;
      32:     p->bytes_deleted = 0;
      33:
      34:     /*  Reset the last-message-access flag */
      35:     p->last_msg = 0;
      36:
      37:     return (pop_msg(p,POP_SUCCESS,"Maildrop has %u messages (%ld octets)",
      38:         p->msg_count,p->drop_size));
      39: }

#### Defined functions

pop_rset defined in line 20; used 1 times

- in /usr/src/libexec/popper/popper.h line 164

#### Defined variables

SccsId defined in line 9; never used
copyright defined in line 8; never used

Last modified: 1992-06-25 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 854 |