MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame^] | 1 | // MorgenGrauen MUDlib |
| 2 | // |
| 3 | // udp_mail.h -- Post per udp |
| 4 | // |
| 5 | // $Id: udp_mail.h,v 3.1 1997/02/12 13:04:59 Wargon Exp $ |
| 6 | |
| 7 | /* |
| 8 | * VERSION 1.0 |
| 9 | * Include file for the UDP MAIL system (Author: Alvin@Sushi) |
| 10 | * Requires INETD V0.60 or higher (INETD Author: Nostradamus@Zebedee) |
| 11 | */ |
| 12 | |
| 13 | /* |
| 14 | * Your local mail delivery system |
| 15 | * Needs to have the following functions :- |
| 16 | * void deliver_mail(string to,string from,string subjct,string mail_body) |
| 17 | * int query_recipient_ok(string name) |
| 18 | */ |
| 19 | #define LOCAL_MAILER "/secure/mailer" |
| 20 | |
| 21 | /* |
| 22 | * The directory in which mail is kept if the initial attempt times out |
| 23 | * The mail will be recent every UDPM_RETRY_SEND minutes until |
| 24 | * UDPM_SEND_FAIL minutes have passed |
| 25 | * NOTE: UDPM_SPOOL_DIR must end with / and must be writable |
| 26 | */ |
| 27 | #define UDPM_SPOOL_DIR "mail/spool/" |
| 28 | |
| 29 | /* The following two times are in MINUTES */ |
| 30 | #define UDPM_RETRY_SEND 30 |
| 31 | #define UDPM_SEND_FAIL 1440 /* 24 Hours */ |
| 32 | |
| 33 | /* PLEASE DO NOT ALTER THE FOLLOWING */ |
| 34 | |
| 35 | #define UDPM_WRITER "udpm_writer" |
| 36 | #define UDPM_SUBJECT "udpm_subject" |
| 37 | #define UDPM_STATUS "udpm_status" |
| 38 | #define UDPM_SPOOL_NAME "udpm_spool_name" |
| 39 | |
| 40 | #define UDPM_STATUS_TIME_OUT 0 |
| 41 | #define UDPM_STATUS_DELIVERED_OK 1 |
| 42 | #define UDPM_STATUS_UNKNOWN_PLAYER 2 |
| 43 | #define UDPM_STATUS_IN_SPOOL 3 |
| 44 | |
| 45 | /* things to do with the spool directory */ |
| 46 | |
| 47 | #define UDPMS_TIME "udpm_spool_time" |
| 48 | #define UDPMS_TO "udpm_spool_to" |
| 49 | #define UDPMS_DEST "udpm_spool_dest" |
| 50 | #define UDPMS_FROM "udpm_spool_from" |
| 51 | #define UDPMS_SUBJECT "udpm_spool_subject" |
| 52 | #define UDPMS_BODY "udpm_spool_body" |