diff options
Diffstat (limited to 'fetchmail.h')
-rw-r--r-- | fetchmail.h | 42 |
1 files changed, 32 insertions, 10 deletions
diff --git a/fetchmail.h b/fetchmail.h index 63b8ca70..814605ad 100644 --- a/fetchmail.h +++ b/fetchmail.h @@ -23,6 +23,9 @@ description: global constant, type, and variable definitions. $Log: fetchmail.h,v $ + Revision 1.2 1996/06/26 19:08:59 esr + This is what I sent Harris. + Revision 1.1 1996/06/24 18:14:08 esr Initial revision @@ -67,10 +70,11 @@ #define POPBUFSIZE 512 /* per RFC 937 */ #define MSGBUFSIZE 1024 /* size of message read buffer */ #define HOSTLEN 128 /* max hostname length */ -#define USERIDLEN 32 /* max user-length */ +#define USERNAMELEN 32 /* max user-length */ #define PASSWORDLEN MAX_PASSWORD_LENGTH #define FOLDERLEN 256 /* max folder name length */ #define DIGESTLEN 33 /* length of MD5 digest */ +#define MDALEN 33 /* length of delivery agent command */ /* exit code values */ #define PS_SUCCESS 0 /* successful receipt of messages */ @@ -88,10 +92,10 @@ #define O_NORMAL 1 /* user-friendly */ #define O_VERBOSE 2 /* excessive */ -/* output folder type, used in options record */ -#define OF_SYSMBOX 1 /* use system default mailbox */ -#define OF_USERMBOX 2 /* use user's specified mailbox */ -#define OF_STDOUT 3 /* use stdout */ +/* output sink type */ +#define TO_FOLDER 1 /* use a mailbox */ +#define TO_STDOUT 2 /* use stdout */ +#define TO_MDA 3 /* use agent */ /* Command-line arguments are passed in this structure type */ struct optrec { @@ -103,16 +107,17 @@ struct optrec { int limit; int fetchall; int flush; - int foldertype; - char loginid [USERIDLEN]; + int output; + char loginid [USERNAMELEN]; char *poprcfile; - char userid [USERIDLEN]; + char username [USERNAMELEN]; char password [PASSWORDLEN]; #if defined(HAVE_APOP_SUPPORT) char digest [DIGESTLEN]; #endif char userfolder [FOLDERLEN]; char remotefolder [FOLDERLEN]; + char mda [MDALEN]; }; @@ -123,12 +128,23 @@ struct prc_server { char *username; char *password; char *remotefolder; - char *localfolder; + char *userfolder; + char *mda; + int keep; + int flush; + int fetchall; }; /* Controls the detail of status/progress messages written to stderr */ -extern int outlevel; /* see the O_.* constants above */ +extern int outlevel; /* see the O_.* constants above */ +extern int yydebug; /* enable parse debugging */ + +/* daemon mode control */ +extern int poll_interval; /* poll interval in seconds */ +extern char *logfile; /* log file for daemon mode */ + +extern char *prc_pathname; /* path name of rc file */ #ifdef HAVE_PROTOTYPES @@ -145,12 +161,18 @@ int openmailpipe (struct optrec *options); int closemailpipe (int fd); char *MD5Digest (char *); char *prc_getpathname (struct optrec *cmd_opts, struct optrec *def_opts); +void reply_hack(char *buf, const char *host); +void append_server_names(int *pargc, char **argv); +int daemonize(const char *logfile); #else char *getnextserver(); char *MD5Digest (); char *prc_getpathname(); +void reply_hack (); +void append_server_names (); +int daemonize (); #endif |