head 1.2; access; symbols; locks; strict; comment @ * @; 1.2 date 92.05.12.22.06.04; author jromine; state Exp; branches; next 1.1; 1.1 date 92.05.12.22.05.28; author jromine; state Exp; branches; next ; desc @@ 1.2 log @fix ifdefs @ text @/* mf.h - include file for mailbox filters */ /* $Id: bboards.h,v 1.2 1992/05/12 22:04:52 jromine Exp $ */ #include "../h/strings.h" #ifndef TRUE #define TRUE 1 #endif #ifndef FALSE #define FALSE 0 #endif #ifndef NOTOK #define NOTOK (-1) #endif #ifndef OK #define OK 0 #endif #ifndef DONE #define DONE 1 #endif #define LINESIZ 512 #define MBXMODE 0600 #define TMPMODE 0600 #define OWIDTH 75 /* length of a header line */ #define HFROM 1 /* header has From: component */ #define HSNDR 2 /* header has Sender: component */ #define HADDR 3 /* header has address component */ #define HDATE 4 /* header has Date: component */ #define HOTHR 5 /* header is unimportant */ /* */ struct adrx { char *text; char *pers; char *mbox; char *host; char *path; char *grp; int ingrp; char *note; char *err; }; /* */ /* * Codes returned by uucp2mmdf(), mmdf2uucp() */ #define MFOK 0 /* all went well */ /* remaining codes must > DONE */ #define MFPRM 2 /* bad parameter */ #define MFSIO 3 /* stdio package went screwy */ #define MFROM 4 /* from line was bad */ #define MFHDR 5 /* headers were bad */ #define MFTXT 6 /* text was bad */ #define MFERR 7 /* I/O or system error */ #define MFDLM 8 /* Bad delimiter in MMDF file */ int isfrom (), lequal (), mfgets (); char *legal_person (); struct adrx *seekadrx (), *getadrx (), *uucpadrx (); @ 1.1 log @Initial revision @ text @d2 1 d8 1 a8 1 #endif TRUE d11 1 a11 1 #endif FALSE d15 1 a15 1 #endif NOTOK d18 1 a18 1 #endif OK d21 1 a21 1 #endif DONE @