diff options
author | José Fonseca <jrfonseca@users.sourceforge.net> | 2003-07-03 17:37:11 +0000 |
---|---|---|
committer | José Fonseca <jrfonseca@users.sourceforge.net> | 2003-07-03 17:37:11 +0000 |
commit | 2867d16bc9bae9764904efbf44cd5131fca1bc9b (patch) | |
tree | 1e910b1566a40e9b02961bf5aed2958b9fa7b974 /local.h | |
parent | 2b266bab3687c078061c7b8bf3676ef3a61d53a7 (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.h | 28 |
1 files changed, 28 insertions, 0 deletions
@@ -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 |