29 |
#include <stdarg.h> |
#include <stdarg.h> |
30 |
#include <sys/stat.h> |
#include <sys/stat.h> |
31 |
#include <sysexits.h> |
#include <sysexits.h> |
32 |
|
#include <sys/socket.h> |
33 |
|
#include <netinet/in.h> |
34 |
|
#include <arpa/inet.h> |
35 |
|
#include <netdb.h> |
36 |
#include "getopt.h" |
#include "getopt.h" |
37 |
|
|
38 |
#ifdef HAVE_STRINGS_H |
#ifdef HAVE_STRINGS_H |
39 |
# include <strings.h> |
# include <strings.h> |
40 |
#endif |
#endif |
41 |
|
|
42 |
|
#ifndef INADDR_LOOPBACK |
43 |
|
# define INADDR_LOOPBAK 0x7f000001 |
44 |
|
#endif |
45 |
|
|
46 |
#include <mailutils/mailbox.h> |
#include <mailutils/mailbox.h> |
47 |
#include <mailutils/message.h> |
#include <mailutils/message.h> |
48 |
#include <mailutils/error.h> |
#include <mailutils/error.h> |
60 |
#define MQUOTA_EXCEEDED 1 |
#define MQUOTA_EXCEEDED 1 |
61 |
#define MQUOTA_UNLIMITED 2 |
#define MQUOTA_UNLIMITED 2 |
62 |
|
|
|
struct mda_data |
|
|
{ |
|
|
FILE *fp; |
|
|
char *progfile; |
|
|
char *progfile_pattern; |
|
|
char **argv; |
|
|
char *tempfile; |
|
|
}; |
|
|
|
|
63 |
extern char *quotadbname; |
extern char *quotadbname; |
64 |
extern int exit_code; |
extern int exit_code; |
65 |
|
|
70 |
char *make_progfile_name (char *pattern, char *username); |
char *make_progfile_name (char *pattern, char *username); |
71 |
|
|
72 |
#ifdef WITH_GUILE |
#ifdef WITH_GUILE |
73 |
|
struct mda_data |
74 |
|
{ |
75 |
|
FILE *fp; |
76 |
|
char *progfile; |
77 |
|
char *progfile_pattern; |
78 |
|
char **argv; |
79 |
|
char *tempfile; |
80 |
|
}; |
81 |
|
|
82 |
int prog_mda (struct mda_data *data); |
int prog_mda (struct mda_data *data); |
83 |
|
|
84 |
|
extern int debug_guile; |
85 |
#endif |
#endif |
86 |
|
|