MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame^] | 1 | // MorgenGrauen MUDlib |
| 2 | // |
| 3 | // mail.h -- Definitionen fuer die Post |
| 4 | // |
| 5 | // $Id: mail.h,v 3.4 2000/01/20 15:13:25 Tiamak Exp $ |
| 6 | |
| 7 | #ifndef _MAIL_ |
| 8 | #define _MAIL_ |
| 9 | /* |
| 10 | *------------------------------------------------------------ |
| 11 | * Definitions of fields used in mail messages |
| 12 | *------------------------------------------------------------ |
| 13 | * |
| 14 | * A message is represented as an array with the following fields: |
| 15 | */ |
| 16 | #define MSG_FROM 0 |
| 17 | #define MSG_SENDER 1 |
| 18 | #define MSG_RECIPIENT 2 |
| 19 | #define MSG_CC 3 |
| 20 | #define MSG_BCC 4 |
| 21 | #define MSG_SUBJECT 5 |
| 22 | #define MSG_DATE 6 |
| 23 | #define MSG_ID 7 |
| 24 | #define MSG_BODY 8 |
| 25 | |
| 26 | #define NO_USER_ALIASES 1 |
| 27 | #define NO_SYSTEM_ALIASES 2 |
| 28 | #define NO_CARBON_COPIES 4 |
| 29 | |
| 30 | #include "/mail/post.h" |
| 31 | |
| 32 | /* |
| 33 | * DeliverMail(mixed *message) |
| 34 | * Hand a mail message over to the mailer demon. The mailer |
| 35 | * demon extracts recipients from the recipient, cc and bcc |
| 36 | * fields and removes the bcc information. It then deposits |
| 37 | * the message to the mail files of all recipients. A valid |
| 38 | * message is shown above. |
| 39 | * |
| 40 | * int FingerMail(string user) |
| 41 | * Gives the number of unread messages a user has. |
| 42 | */ |
| 43 | #endif |