[go: up one dir, main page]

Menu

[d77762]: / vacation.h  Maximize  Restore  History

Download this file

45 lines (36 with data), 1.1 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/* vacation.h
** 00/01/11 Sean Rima (thecivvie@softhome.net)
*/
#ifndef _VACATION_H
#define _VACATION_H
#define _PATH_SED "/bin/sed" /* which is not mentioned in paths.h */
#define MAXLINE 1024 /* max line from mail header */
#define VDB ".vacation.db" /* dbm's database */
#define VMSG ".vacation.msg" /* vacation message */
#define OLDVMSG ".vacation.old" /* previous vacation message */
#define FWD ".forward" /* forward file */
#define OLDFWD ".forward.old" /* previous forward file */
typedef struct alias {
struct alias *next;
char *name;
} ALIAS;
ALIAS *names;
GDBM_FILE db;
char from[MAXLINE];
char subject[MAXLINE];
char replyto[MAXLINE];
int jflag, rflag; /* for the `-j' and `-r' options */
void readheaders(void);
void usage(void);
void setinterval(time_t interval);
int recent(void);
void setreply(void);
void sendmessage(char *myname, char *myrealname);
int junkmail(void);
int nsearch(register char *name, register char *str);
void initialize(char *path, char*myname);
#ifdef DEBUG
void printd (char *message);
char logline[MAXLINE];
#endif
#endif