home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / NEXTSTEP / UNIX / Mail / appnmail-1.8-Solaris / mailapp-utilities / mailutil.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-12-01  |  1.4 KB  |  44 lines

  1. /* -*-C-*-
  2. *******************************************************************************
  3. *
  4. * File:         mailutil.h
  5. * RCS:          /usr/local/sources/CVS/mailapp-utilities/mailutil.h,v 1.2 1996/12/01 17:03:22 tom Exp
  6. * Description:  Header file for all Mail.app utilities
  7. * Author:       Carl Edman
  8. * Created:      Sun Apr 25 10:27:09 1993
  9. * Modified:     Fri Nov 29 15:35:00 1996 Tom Hageman <tom@basil.icce.rug.nl>
  10. * Language:     C
  11. * Package:      N/A
  12. * Status:       Experimental (Do Not Distribute)
  13. *
  14. * (C) Copyright 1993, but otherwise this file is perfect freeware.
  15. *
  16. *******************************************************************************
  17. */
  18.  
  19. #import <time.h>
  20.  
  21. #define LINELEN 10240
  22.  
  23. int mailboxdir(char *buf);
  24. int cd_mbox(const char *name,int createflag);
  25. int uncd_mbox(void);
  26. int lock_mbox(int nowaitflg);
  27. int unlock_mbox(void);
  28.  
  29. time_t mtime(const char *path);
  30. off_t filesize(const char *path);
  31. int dirsize(char *path);
  32.  
  33. char *strpcpy(char *to,const char *beg,const char *end);
  34. char *strpcat(char *to,const char *beg,const char *end);
  35. int strpequ(char *to,const char *beg,const char *end);
  36. int strpcaseequ(char *to,const char *beg,const char *end);
  37.  
  38. void appstring(char **string,int *len,int *maxlen,const char *app,const int alen);
  39. char *growstring(char **string,int *len,int *maxlen,const int alen);
  40.  
  41. unsigned long int calc_crc(const char *beg,int len);
  42.  
  43. void forall_mboxes(void (*func)(const char *));
  44.