X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/13f84dd50ca5754391dbd3296a5c7425f9363600..665dfc96:/h/mf.h?ds=inline diff --git a/h/mf.h b/h/mf.h index 1f609194..b0301237 100644 --- a/h/mf.h +++ b/h/mf.h @@ -1,8 +1,4 @@ - -/* - * mf.h -- include file for mailbox filters - * - * $Id$ +/* mf.h -- include file for mailbox filters */ #include @@ -27,19 +23,6 @@ # 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; @@ -54,29 +37,8 @@ struct adrx { }; -/* - * 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 */ - - /* * prototypes */ -int isfrom(char *); -int lequal (unsigned char *, unsigned char *); -int mfgets (FILE *, char **); -char *legal_person (char *); -struct adrx *seekadrx (char *); -struct adrx *getadrx (char *); -struct adrx *uucpadrx (char *); - +char *legal_person (const char *); +struct adrx *getadrx (const char *, int);