summaryrefslogtreecommitdiff
path: root/local.h
diff options
context:
space:
mode:
authorJosé Fonseca <jrfonseca@users.sourceforge.net>2003-07-03 17:37:11 +0000
committerJosé Fonseca <jrfonseca@users.sourceforge.net>2003-07-03 17:37:11 +0000
commit2867d16bc9bae9764904efbf44cd5131fca1bc9b (patch)
tree1e910b1566a40e9b02961bf5aed2958b9fa7b974 /local.h
parent2b266bab3687c078061c7b8bf3676ef3a61d53a7 (diff)
Modularization of the code.
Hability to get the recipients from the message headers. Local delivery via a MDA.
Diffstat (limited to 'local.h')
-rw-r--r--local.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/local.h b/local.h
new file mode 100644
index 0000000..7ce218d
--- /dev/null
+++ b/local.h
@@ -0,0 +1,28 @@
+/**
+ * \file local.h
+ */
+
+#ifndef _LOCAL_H
+#define _LOCAL_H
+
+
+#include <stdio.h>
+
+#include "message.h"
+
+
+extern char *mda;
+extern FILE *mda_fp;
+
+
+/** Check whether it's a local or a remote address */
+int local_address(const char *address);
+
+/** Send a message locally (via a MDA) */
+int local_init(message_t *msg);
+
+int local_flush(message_t *msg);
+
+void local_cleanup(void);
+
+#endif