home *** CD-ROM | disk | FTP | other *** search
/ PDA Software Library / pdasoftwarelib.iso / PSION / COMMS / PSIONMAI / PMFULLSO / SUNMAIL / DELE.C < prev    next >
Encoding:
C/C++ Source or Header  |  1995-07-04  |  727 b   |  29 lines

  1. #include <stdio.h>
  2. #include <string.h>
  3. #include "project.h"
  4. delmail (mailno, llstart)
  5. int mailno;
  6. struct ll * llstart;
  7. {
  8.     struct ll * llentry ;
  9.     if (cmddbg == TRUE)
  10.         printf("CALL delmail (mailno = %d, llstart = OMITTED)", mailno) ;
  11.     if ((llentry = llnofind(mailno, llstart)) == NULL)
  12.         return ;
  13.     llentry->status = DELETED ;
  14. }
  15. /* undelete the mail from the internal linked lists */
  16. udelmail (mailno, llptr)
  17. int mailno; 
  18. struct ll * llptr;
  19. {
  20.     struct ll * llentry ;
  21.     if (cmddbg == TRUE)
  22.         printf("CALL udelmail (mailno = %d, llptr = OMITTED)", mailno) ;
  23.     if ((llentry = llnofind(mailno, llptr)) == NULL)
  24.         return ;
  25.     llentry->status = ACTIVE ;
  26. }
  27. /* end of functions for working the mailbox in view */
  28.  
  29.