Back to index

courier  0.68.2
maildrop.h
Go to the documentation of this file.
00001 #include      "config.h"
00002 #include      "message.h"
00003 #include      "messageinfo.h"
00004 
00005 #ifndef       maildrop_h
00006 #define       maildrop_h
00007 
00008 
00010 //
00011 // Maildrop global variables
00012 
00013 #include      "buffer.h"
00014 #include      "globaltimer.h"
00015 #include      "mio.h"
00016 
00017 class Maildrop {
00018 public:
00019        int verbose_level;   // Current verbose level
00020        int isdelivery;             // Running in delivery mode
00021 static int sigfpe;          // Floating point exception trapped.
00022        int includelevel;    // Catch include loops
00023        int embedded_mode;   // Running in embedded mode
00024        int authlib_essential;      // Whether authlib is essential
00025 
00026        Message *msgptr, *savemsgptr;      // msgptr is the current message.
00027                                    // savemsgptr points to a spare message
00028                                    // structure (m1 and m2).
00029        MessageInfo msginfo;
00030 
00031 #if    SHARED_TEMPDIR
00032 
00033 #else
00034        Buffer tempdir;      // Directory for temporary files
00035 #endif
00036 
00037        Buffer  init_home;   // Initial HOME
00038        Buffer init_logname; // Initial LOGNAME
00039        Buffer init_shell;   // Initial SHELL
00040        Buffer init_default; // Initial DEFAULT
00041        Buffer init_quota;   // Initial MAILDIRQUOTA
00042 
00043        Mio    logfile;      // Log file.
00044        GlobalTimer global_timer;   // Watchdog timeout.
00045        Maildrop();
00046 
00047 static void cleanup();
00048 static RETSIGTYPE bye(int);
00049 static int trap(int (*)(int, char *[]), int, char *[]);
00050 static void reset_vars();
00051 } ;
00052 
00053 extern class Maildrop maildrop;
00054 
00055 #endif