TinyMUSH 3.3
TinyMUSH Server
Loading...
Searching...
No Matches
Classes | Macros | Typedefs | Functions
mail.h File Reference

Module for penn-based mailer system. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  mail
 
struct  mail_selector
 
struct  mail_entry
 

Macros

#define M_ISREAD   0x0001
 
#define M_CLEARED   0x0002
 
#define M_URGENT   0x0004
 
#define M_MASS   0x0008
 
#define M_SAFE   0x0010
 
#define M_TAG   0x0040
 
#define M_FORWARD   0x0080
 
#define M_FMASK   0xF0FF
 
#define M_ALL   0x1000 /* Used in mail_selectors */
 
#define M_MSUNREAD   0x2000 /* Mail selectors */
 
#define M_REPLY   0x4000
 
#define MAX_FOLDERS   15
 
#define FOLDER_NAME_LEN   MBUF_SIZE
 
#define FolderBit(f)   (256 * (f))
 
#define Urgent(m)   (m->read & M_URGENT)
 
#define Mass(m)   (m->read & M_MASS)
 
#define M_Safe(m)   (m->read & M_SAFE)
 
#define Forward(m)   (m->read & M_FORWARD)
 
#define Tagged(m)   (m->read & M_TAG)
 
#define Folder(m)   ((m->read & ~M_FMASK) >> 8)
 
#define Read(m)   (m->read & M_ISREAD)
 
#define Cleared(m)   (m->read & M_CLEARED)
 
#define Unread(m)   (!Read(m))
 
#define All(ms)   (ms.flags & M_ALL)
 
#define ExpMail(x)   (Wizard(x))
 
#define Reply(m)   (m->read & M_REPLY)
 
#define MA_INC   2 /* what interval to increase the malias list */
 
#define DASH_LINE    "---------------------------------------------------------------------------"
 
#define MAIL_ITER_ALL(mp, thing)
 
#define MAIL_ITER_SAFE(mp, thing, nextp)
 

Typedefs

typedef unsigned int mail_flag
 
typedef struct mail_entry MENT
 

Functions

void set_player_folder (dbref, int)
 
struct maliasget_malias (dbref, char *)
 
void load_malias (FILE *)
 
void save_malias (FILE *)
 
void malias_read (FILE *)
 
void malias_write (FILE *)
 
void do_malias_chown (dbref, char *, char *)
 
void do_malias_desc (dbref, char *, char *)
 
void do_mail_quick (dbref, char *, char *)
 
void do_malias_rename (dbref, char *, char *)
 
void do_malias_adminlist (dbref)
 
void do_malias_delete (dbref, char *)
 
void do_malias_status (dbref)
 
void do_malias_create (dbref, char *, char *)
 
void do_malias_list (dbref, char *)
 
void do_malias_list_all (dbref)
 
void do_malias_add (dbref, char *, char *)
 
void do_malias_remove (dbref, char *, char *)
 

Detailed Description

Module for penn-based mailer system.

Author
TinyMUSH development team (https://github.com/TinyMUSH)
Version
3.1
Date
2020-12-28
Note
This code was taken from Kalkin's DarkZone code, which was originally taken from PennMUSH 1.50 p10, and has been heavily modified since being included in MUX (and then being imported wholesale into 3.0).

Macro Definition Documentation

◆ MAIL_ITER_ALL

#define MAIL_ITER_ALL (   mp,
  thing 
)
Value:
for ((thing) = 0; (thing) < mushstate.db_top; (thing)++) \
for (mp = (struct mail *)nhashfind((int)thing, &mod_mail_msg_htab); mp != NULL; mp = mp->next)
Definition: mail.h:73
int db_top
Definition: typedefs.h:1206

◆ MAIL_ITER_SAFE

#define MAIL_ITER_SAFE (   mp,
  thing,
  nextp 
)
Value:
for ((thing) = 0; (thing) < mushstate.db_top; (thing)++) \
for (mp = (struct mail *)nhashfind((int)thing, &mod_mail_msg_htab); mp != NULL; mp = nextp)