Annotation of sbbs/sbbs3/mailsrvr.h, revision 1.1.1.1

1.1       root        1: /* mailsrvr.h */
                      2: 
                      3: /* Synchronet Mail (SMTP/POP3/SendMail) server */
                      4: 
                      5: /* $Id: mailsrvr.h,v 1.7 2000/11/30 01:56:06 rswindell Exp $ */
                      6: 
                      7: /****************************************************************************
                      8:  * @format.tab-size 4          (Plain Text/Source Code File Header)                    *
                      9:  * @format.use-tabs true       (see http://www.synchro.net/ptsc_hdr.html)              *
                     10:  *                                                                                                                                                     *
                     11:  * Copyright 2000 Rob Swindell - http://www.synchro.net/copyright.html         *
                     12:  *                                                                                                                                                     *
                     13:  * This program is free software; you can redistribute it and/or                       *
                     14:  * modify it under the terms of the GNU General Public License                         *
                     15:  * as published by the Free Software Foundation; either version 2                      *
                     16:  * of the License, or (at your option) any later version.                                      *
                     17:  * See the GNU General Public License for more details: gpl.txt or                     *
                     18:  * http://www.fsf.org/copyleft/gpl.html                                                                                *
                     19:  *                                                                                                                                                     *
                     20:  * Anonymous FTP access to the most recent released source is available at     *
                     21:  * ftp://vert.synchro.net, ftp://cvs.synchro.net and ftp://ftp.synchro.net     *
                     22:  *                                                                                                                                                     *
                     23:  * Anonymous CVS access to the development source and modification history     *
                     24:  * is available at cvs.synchro.net:/cvsroot/sbbs, example:                                     *
                     25:  * cvs -d :pserver:[email protected]:/cvsroot/sbbs login                       *
                     26:  *     (just hit return, no password is necessary)                                                     *
                     27:  * cvs -d :pserver:[email protected]:/cvsroot/sbbs checkout src                *
                     28:  *                                                                                                                                                     *
                     29:  * For Synchronet coding style and modification guidelines, see                                *
                     30:  * http://www.synchro.net/source.html                                                                          *
                     31:  *                                                                                                                                                     *
                     32:  * You are encouraged to submit any modifications (preferably in Unix diff     *
                     33:  * format) via e-mail to [email protected]                                                                      *
                     34:  *                                                                                                                                                     *
                     35:  * Note: If this box doesn't appear square, then you need to fix your tabs.    *
                     36:  ****************************************************************************/
                     37: 
                     38: #include "client.h"                            /* client_t */
                     39: 
                     40: typedef struct {
                     41: 
                     42:        DWORD   size;                           /* sizeof(mail_startup_t) */
                     43:        WORD    smtp_port;
                     44:        WORD    pop3_port;
                     45:        WORD    max_clients;
                     46:        WORD    max_inactivity;
                     47:        WORD    max_delivery_attempts;
                     48:        WORD    rescan_frequency;       /* In seconds */
                     49:        WORD    relay_port;
                     50:        WORD    reserved_word2;
                     51:        WORD    reserved_word1;
                     52:     DWORD   interface_addr;
                     53:     DWORD      options;                        /* See MAIL_OPT definitions */
                     54:     DWORD      reserved_dword8;
                     55:     DWORD      reserved_dword7;
                     56:     DWORD      reserved_dword6;
                     57:     DWORD      reserved_dword5;
                     58:     DWORD      reserved_dword4;
                     59:     DWORD      reserved_dword3;
                     60:     DWORD      reserved_dword2;
                     61:     DWORD      reserved_dword1;
                     62:        int     (*lputs)(char*);
                     63:        void    (*status)(char*);
                     64:     void       (*started)(void);
                     65:     void       (*terminated)(int code);
                     66:     void       (*clients)(int active);
                     67:     void       (*thread_up)(BOOL up);
                     68:        void    (*socket_open)(BOOL open);
                     69:     void       (*client_on)(BOOL on, int sock, client_t*);
                     70:     void       (*reserved_fptr4)(void);
                     71:     void       (*reserved_fptr3)(void);
                     72:     void       (*reserved_fptr2)(void);
                     73:     void       (*reserved_fptr1)(void);
                     74:     char    ctrl_dir[128];
                     75:     char       relay_server[128];
                     76:     char       dns_server[128];
                     77:     char       reserved_path8[128];
                     78:     char       reserved_path7[128];
                     79:     char       reserved_path6[128];
                     80:     char       reserved_path5[128];
                     81:     char       reserved_path4[128];
                     82:     char       reserved_path3[128];
                     83:        char    inbound_sound[128];
                     84:        char    outbound_sound[128];
                     85:     char       pop3_sound[128];
                     86:     char       reserved_path1[128];
                     87: 
                     88: } mail_startup_t;
                     89: 
                     90: #define MAIL_OPT_DEBUG_RX_HEADER       (1<<0)
                     91: #define MAIL_OPT_DEBUG_RX_BODY         (1<<1)
                     92: #define MAIL_OPT_ALLOW_POP3                    (1<<2)
                     93: #define MAIL_OPT_DEBUG_TX                      (1<<3)
                     94: #define MAIL_OPT_DEBUG_RX_RSP          (1<<4)
                     95: #define MAIL_OPT_RELAY_TX                      (1<<5)  /* Use SMTP relay server */
                     96: #define MAIL_OPT_DEBUG_POP3                    (1<<6)
                     97: #define MAIL_OPT_ALLOW_RX_BY_NUMBER    (1<<7)  /* Allow mail sent to user # */
                     98: #define MAIL_OPT_USE_RBL                       (1<<8)  /* SPAM filters */
                     99: #define MAIL_OPT_USE_DUL                       (1<<9)
                    100: #define MAIL_OPT_USE_RSS                       (1<<10)
                    101: #define MAIL_OPT_NO_HOST_LOOKUP                (1<<11) /* Don't look-up hostnames */
                    102: #define MAIL_OPT_USE_TCP_DNS           (1<<12) /* Use TCP vs UDP for DNS req */
                    103: #define MAIL_OPT_NO_SENDMAIL           (1<<13) /* Don't run SendMail thread */
                    104: #define MAIL_OPT_LOCAL_TIMEZONE                (1<<30) /* Don't force UCT/GMT */
                    105: #define MAIL_OPT_MUTE                          (1<<31)
                    106: 
                    107: #ifdef DLLEXPORT
                    108: #undef DLLEXPORT
                    109: #endif
                    110: #ifdef DLLCALL
                    111: #undef DLLCALL
                    112: #endif
                    113: 
                    114: #ifdef _WIN32
                    115:        #ifdef MAILSRVR_EXPORTS
                    116:                #define DLLEXPORT __declspec(dllexport)
                    117:        #else
                    118:                #define DLLEXPORT __declspec(dllimport)
                    119:        #endif
                    120:        #ifdef __BORLANDC__
                    121:                #define DLLCALL __stdcall
                    122:        #else
                    123:                #define DLLCALL
                    124:        #endif
                    125: #else
                    126:        #define DLLEXPORT
                    127:        #define DLLCALL
                    128: #endif
                    129: 
                    130: #ifdef __cplusplus
                    131: extern "C" {
                    132: #endif
                    133: /* arg is pointer to static mail_startup_t* */
                    134: DLLEXPORT void DLLCALL mail_server(void* arg);
                    135: DLLEXPORT void DLLCALL mail_terminate(void);
                    136: DLLEXPORT char*        DLLCALL mail_ver(void);
                    137: #ifdef __cplusplus
                    138: }
                    139: #endif

unix.superglobalmegacorp.com

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