Annotation of 43BSD/contrib/mh/zotnet/mf/mf.h, revision 1.1

1.1     ! root        1: /* mf.h - include file for mailbox filters */
        !             2: 
        !             3: #include "../h/strings.h"
        !             4: 
        !             5: #ifndef        TRUE
        !             6: #define        TRUE    1
        !             7: #endif TRUE
        !             8: #ifndef        FALSE
        !             9: #define        FALSE   0
        !            10: #endif FALSE
        !            11: 
        !            12: #ifndef        NOTOK
        !            13: #define        NOTOK   (-1)
        !            14: #endif NOTOK
        !            15: #ifndef        OK
        !            16: #define        OK      0
        !            17: #endif OK
        !            18: #ifndef        DONE
        !            19: #define        DONE    1
        !            20: #endif DONE
        !            21: 
        !            22: #define        LINESIZ 512
        !            23: 
        !            24: #define        MBXMODE 0600
        !            25: #define        TMPMODE 0600
        !            26: 
        !            27: #define        OWIDTH  75              /* length of a header line */
        !            28: 
        !            29: #define        HFROM   1               /* header has From: component    */
        !            30: #define        HSNDR   2               /* header has Sender: component  */
        !            31: #define        HADDR   3               /* header has address component  */
        !            32: #define        HDATE   4               /* header has Date: component    */
        !            33: #define        HOTHR   5               /* header is unimportant         */
        !            34: 
        !            35: /*  */
        !            36: 
        !            37: struct adrx {
        !            38:     char   *text;
        !            39:     char   *pers;
        !            40:     char   *mbox;
        !            41:     char   *host;
        !            42:     char   *path;
        !            43:     char   *grp;
        !            44:     int     ingrp;
        !            45:     char   *note;
        !            46:     char   *err;
        !            47: };
        !            48: 
        !            49: /*  */
        !            50: 
        !            51: /* 
        !            52:  *    Codes returned by uucp2mmdf(), mmdf2uucp()
        !            53:  */
        !            54: 
        !            55: #define        MFOK    0               /* all went well                 */
        !            56:  /* remaining codes must > DONE         */
        !            57: #define        MFPRM   2               /* bad parameter                 */
        !            58: #define        MFSIO   3               /* stdio package went screwy     */
        !            59: #define        MFROM   4               /* from line was bad             */
        !            60: #define        MFHDR   5               /* headers were bad              */
        !            61: #define        MFTXT   6               /* text was bad                  */
        !            62: #define        MFERR   7               /* I/O or system error           */
        !            63: #define        MFDLM   8               /* Bad delimiter in MMDF file    */
        !            64: 
        !            65: 
        !            66: int     isfrom (), lequal (), mfgets ();
        !            67: char   *legal_person ();
        !            68: struct adrx *seekadrx (), *getadrx (), *uucpadrx ();

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.