ftp.nice.ch/pub/next/unix/mail/mailapp-utilities.2.0.NIHS.bs.tar.gz#/mailapp-utilities/mailutil.h

This is mailutil.h in view mode; [Download] [Up]

/* -*-C-*-
*******************************************************************************
*
* File:         mailutil.h
* RCS:          /usr/local/sources/CVS/mailapp-utilities/mailutil.h,v 1.4 1997/05/31 21:52:29 tom Exp
* Description:  Header file for all Mail.app utilities
* Author:       Carl Edman
* Created:      Sun Apr 25 10:27:09 1993
* Modified:     Sat May 31 18:07:01 1997 Tom Hageman <tom@basil.icce.rug.nl>
* Language:     C
* Package:      N/A
* Status:       Experimental (Do Not Distribute)
*
* (C) Copyright 1993, but otherwise this file is perfect freeware.
*
*******************************************************************************
*/

#import <time.h>

#define LINELEN 10240

int mailboxdir(char *buf);
int cd_mbox(const char *name,int createflag);
int uncd_mbox(void);

int try_lock_mbox_file(const char *lockfile,char *lockuser,char *lockhost,int *lockpid);
int lock_mbox_file(const char *lockfile, int nowaitflg);
int unlock_mbox_file(const char *lockfile);
int try_lock_mbox(char *lockuser,char *lockhost,int *lockpid);
int lock_mbox(int nowaitflg);
int unlock_mbox(void);

#define LOCK_USER_FMT	"%s\320[%s]"
#define LOCK_USER_RE	"\\(.*\\)\320\\[\\(.*\\)\\]"

time_t mtime(const char *path);
off_t filesize(const char *path);
int dirsize(char *path);

char *strpcpy(char *to,const char *beg,const char *end);
char *strpcat(char *to,const char *beg,const char *end);
int strpequ(char *to,const char *beg,const char *end);
int strpcaseequ(char *to,const char *beg,const char *end);

void appstring(char **string,int *len,int *maxlen,const char *app,const int alen);
char *growstring(char **string,int *len,int *maxlen,const int alen);

unsigned long int calc_crc(const char *beg,int len);

void forall_mboxes(void (*func)(const char *));

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.