X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fserver%2Fmodules%2Fctdlproto%2Fserv_user.c;h=aa560ee4d3b1382e2f579c38e6fbf4d41ed2cfff;hb=0c8706708324e1c6afdca71ac1228d5682f27a47;hp=3ee1e79bcbd9a8849626b540acf554f0905cbce2;hpb=a34ab2fe2c99fda491eb8ae91371774a32c2612e;p=citadel.git diff --git a/citadel/server/modules/ctdlproto/serv_user.c b/citadel/server/modules/ctdlproto/serv_user.c index 3ee1e79bc..aa560ee4d 100644 --- a/citadel/server/modules/ctdlproto/serv_user.c +++ b/citadel/server/modules/ctdlproto/serv_user.c @@ -774,6 +774,11 @@ void cmd_lout(char *argbuf) { } +void cmd_biff(char *argbuf) { // has new mail arrived? + cprintf("%d %d\n", CIT_OK, NewMailCount()); +} + + // Initialization function, called from modules_init.c char *ctdl_module_init_serv_user(void) { if (!threading) { @@ -804,6 +809,7 @@ char *ctdl_module_init_serv_user(void) { CtdlRegisterProtoHook(cmd_renu, "RENU", "Rename a user"); CtdlRegisterProtoHook(cmd_newu, "NEWU", "Log in as a new user"); CtdlRegisterProtoHook(cmd_isme, "ISME", "Determine whether an email address belongs to a user"); + CtdlRegisterProtoHook(cmd_biff, "BIFF", "Count new messages that have arrived in the inbox"); } /* return our Subversion id for the Log */ return "user";