summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c23
1 files changed, 13 insertions, 10 deletions
diff --git a/main.c b/main.c
index 2188542..022c8d7 100644
--- a/main.c
+++ b/main.c
@@ -15,6 +15,15 @@
#include "local.h"
+/** Modes of operation. */
+typedef enum {
+ ENQUEUE, /**< delivery mode */
+ NEWALIAS, /**< initialize alias database */
+ MAILQ, /**< list mail queue */
+ FLUSHQ /**< flush the mail queue */
+} opmode_t;
+
+
int verbose = 0;
FILE *log_fp = NULL;
@@ -26,16 +35,8 @@ int main (int argc, char **argv)
enum notify_flags notify = Notify_NOTSET;
char *from = NULL;
message_t *message;
- int local, remote;
- int parse_headers;
-
- /* Modes of operation. */
- enum {
- ENQUEUE, /* delivery mode */
- NEWALIAS, /* initialize alias database */
- MAILQ, /* list mail queue */
- FLUSHQ /* flush the mail queue */
- } mode;
+ int parse_headers, local, remote;
+ opmode_t mode;
identities_init();
@@ -346,5 +347,7 @@ int main (int argc, char **argv)
message_free(message);
+ identities_cleanup();
+
exit(EX_OK);
}