From e068bfd5c06b28bbca4b62497666a6032be313f3 Mon Sep 17 00:00:00 2001 From: JamDog Date: Mon, 6 Dec 2010 18:40:28 +0000 Subject: [PATCH] New mail system, with inbox OLC, index rebuilder and initial mail --- changelog | 2 + lib/mudmail/0/0.ml | 20 + lib/mudmail/index | 5 + src/act.h | 9 + src/act.informative.c | 21 +- src/act.other.c | 2 +- src/cedit.c | 244 ++++ src/db.c | 7 +- src/db.h | 5 +- src/dg_mobcmd.c | 103 +- src/dg_scripts.h | 2 + src/dg_variables.c | 3 + src/handler.c | 32 + src/handler.h | 12 +- src/interpreter.c | 10 +- src/mail.c | 2450 ++++++++++++++++++++++++++++------ src/mail.h | 320 +++-- src/mailedit.c | 898 +++++++++++++ src/modify.c | 10 +- src/oasis.c | 3 +- src/oasis.h | 18 +- src/spec_assign.c | 11 - src/structs.h | 32 +- src/util/Makefile.in | 18 +- src/util/rebuildAsciiIndex.c | 84 +- src/util/rebuildMailIndex.c | 299 +++++ src/utils.c | 21 + src/utils.h | 32 + 28 files changed, 4085 insertions(+), 588 deletions(-) create mode 100644 lib/mudmail/0/0.ml create mode 100644 lib/mudmail/index create mode 100755 src/mailedit.c create mode 100755 src/util/rebuildMailIndex.c diff --git a/changelog b/changelog index 0a883d0..72423f4 100644 --- a/changelog +++ b/changelog @@ -35,6 +35,8 @@ export (QQ's a zone into a tarball) Xlist (mlist, olist, rlist, zlist, slist, tlist, qlist) (lots of major bugfixes too) @ +[Dec 06 2010] - Jamdog + Added new mail system, with inbox OLC, index rebuilder and first mail (to ID 1) [Dec 05 2010] - Jamdog Bug-Fix: 'Did you mean' now only shows commands you have access to (thanks Welcor) Bug-Fix: Fixed crash bug introduced by new house system when saving house contents diff --git a/lib/mudmail/0/0.ml b/lib/mudmail/0/0.ml new file mode 100644 index 0000000..9fb52a6 --- /dev/null +++ b/lib/mudmail/0/0.ml @@ -0,0 +1,20 @@ +MlID: 0 +Send: -1 +Reci: 1 +Sent: 1283977700 +Subj: Welcome to Trigun Mail +Body: +@GWelcome to Trigun MUD Mail System +@W--------------------------------- +@y +This is an automatic mail sent to the MUD owner. This new tbaMUD +Mail system allows for much greater flexibility than the old circle +MUDmail. + +A manual on usage is available at: +@Chttp://www.stefancole.com/mudmail.pdf@n +~ +Gold: 10 +Flag: f 0 0 0 +$~ + diff --git a/lib/mudmail/index b/lib/mudmail/index new file mode 100644 index 0000000..a7ff645 --- /dev/null +++ b/lib/mudmail/index @@ -0,0 +1,5 @@ +# tbaMUD Mail Index +# Format: