version 1.19, 2003/06/03 02:56:21 |
version 1.20, 2003/06/10 22:20:53 |
|
|
void usage(void); |
void usage(void); |
|
|
int |
int |
main(argc, argv) |
main(int argc, char *argv[]) |
int argc; |
|
char **argv; |
|
{ |
{ |
struct passwd *pw; |
struct passwd *pw; |
struct stat sb; |
struct stat sb; |
|
|
* read mail headers |
* read mail headers |
*/ |
*/ |
void |
void |
readheaders() |
readheaders(void) |
{ |
{ |
ALIAS *cur; |
ALIAS *cur; |
char *p; |
char *p; |
|
|
* do a nice, slow, search of a string for a substring. |
* do a nice, slow, search of a string for a substring. |
*/ |
*/ |
int |
int |
nsearch(name, str) |
nsearch(char *name, char *str) |
char *name, *str; |
|
{ |
{ |
int len; |
int len; |
|
|
|
|
* read the header and return if automagic/junk/bulk/list mail |
* read the header and return if automagic/junk/bulk/list mail |
*/ |
*/ |
int |
int |
junkmail() |
junkmail(void) |
{ |
{ |
static struct ignore { |
static struct ignore { |
char *name; |
char *name; |
|
|
* use bcopy for machines with alignment restrictions |
* use bcopy for machines with alignment restrictions |
*/ |
*/ |
int |
int |
recent() |
recent(void) |
{ |
{ |
DBT key, data; |
DBT key, data; |
time_t then, next; |
time_t then, next; |
|
|
* store the reply interval |
* store the reply interval |
*/ |
*/ |
void |
void |
setinterval(interval) |
setinterval(time_t interval) |
time_t interval; |
|
{ |
{ |
DBT key, data; |
DBT key, data; |
|
|
|
|
* store that this user knows about the vacation. |
* store that this user knows about the vacation. |
*/ |
*/ |
void |
void |
setreply() |
setreply(void) |
{ |
{ |
DBT key, data; |
DBT key, data; |
time_t now; |
time_t now; |
|
|
* exec sendmail to send the vacation file to sender |
* exec sendmail to send the vacation file to sender |
*/ |
*/ |
void |
void |
sendmessage(myname) |
sendmessage(char *myname) |
char *myname; |
|
{ |
{ |
FILE *mfp, *sfp; |
FILE *mfp, *sfp; |
int i; |
int i; |
|
|
} |
} |
|
|
void |
void |
usage() |
usage(void) |
{ |
{ |
syslog(LOG_NOTICE, "uid %u: usage: vacation [-i] [-a alias] login", |
syslog(LOG_NOTICE, "uid %u: usage: vacation [-i] [-a alias] login", |
getuid()); |
getuid()); |