blob: fe762326d9a027635a353ba4ac14ec4599b16ff9 [file] [log] [blame]
// MorgenGrauen MUDlib
//
// udp_mail.h -- Post per udp
//
// $Id: udp_mail.h,v 3.1 1997/02/12 13:04:59 Wargon Exp $
/*
* VERSION 1.0
* Include file for the UDP MAIL system (Author: Alvin@Sushi)
* Requires INETD V0.60 or higher (INETD Author: Nostradamus@Zebedee)
*/
/*
* Your local mail delivery system
* Needs to have the following functions :-
* void deliver_mail(string to,string from,string subjct,string mail_body)
* int query_recipient_ok(string name)
*/
#define LOCAL_MAILER "/secure/mailer"
/*
* The directory in which mail is kept if the initial attempt times out
* The mail will be recent every UDPM_RETRY_SEND minutes until
* UDPM_SEND_FAIL minutes have passed
* NOTE: UDPM_SPOOL_DIR must end with / and must be writable
*/
#define UDPM_SPOOL_DIR "mail/spool/"
/* The following two times are in MINUTES */
#define UDPM_RETRY_SEND 30
#define UDPM_SEND_FAIL 1440 /* 24 Hours */
/* PLEASE DO NOT ALTER THE FOLLOWING */
#define UDPM_WRITER "udpm_writer"
#define UDPM_SUBJECT "udpm_subject"
#define UDPM_STATUS "udpm_status"
#define UDPM_SPOOL_NAME "udpm_spool_name"
#define UDPM_STATUS_TIME_OUT 0
#define UDPM_STATUS_DELIVERED_OK 1
#define UDPM_STATUS_UNKNOWN_PLAYER 2
#define UDPM_STATUS_IN_SPOOL 3
/* things to do with the spool directory */
#define UDPMS_TIME "udpm_spool_time"
#define UDPMS_TO "udpm_spool_to"
#define UDPMS_DEST "udpm_spool_dest"
#define UDPMS_FROM "udpm_spool_from"
#define UDPMS_SUBJECT "udpm_spool_subject"
#define UDPMS_BODY "udpm_spool_body"