summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorJosé Fonseca <jrfonseca@users.sourceforge.net>2003-07-03 18:59:40 +0000
committerJosé Fonseca <jrfonseca@users.sourceforge.net>2003-07-03 18:59:40 +0000
commit15350708d628c8be91ca0ac00ec7956bbf3f6c80 (patch)
treee9d05b827d16b7b948416f9e971b041bad03ef78 /main.c
parent15ff73b9843c79c1709f4a521aaa09285105f8bc (diff)
Documentation and packaging fixes for the latest changes.
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);
}