_from.c
tmi2_fluffos_v2/lib/cmds/wiz/_from.c · 475 B
From the archive tmi2_fluffos_v2.zip
Download the archive « Back to the archive contents
/* _from.c
* Command front-end to the from command
*
* Zak, 930413
*/
#include <mailer.h>
#include <mudlib.h>
#include <config.h>
inherit DAEMON;
int cmd_from(string arg)
{
object ob;
seteuid("TEMP");
ob = new(MAILER);
ob->move(this_player());
return (int) ob->do_from(arg);
} // cmd_from
void help()
{
write( @HELP
Usage: from [ new ]
lists the contents your mailbox. With the optional 'new' arg,
only new mail is listed
HELP
);
} // help