-void goto_sieverules_room(void)
-{// TODO: check if we're authenticated.
- struct ctdlroom QRscratch;
- int c;
- char augmented_roomname[ROOMNAMELEN];
- int transiently = 0;
-
- MailboxName(augmented_roomname, sizeof augmented_roomname,
- &CC->user, SIEVERULES);
- c = getroom(&QRscratch, augmented_roomname);
- if (c != 0)/* something went wrong. hit it! */
- {
- cprintf("BYE\r\n");
- CC->kill_me = 1;
- return;
- }
- /* move to the sieve room. */
- memcpy(&CC->room, &QRscratch,
- sizeof(struct ctdlroom));
- usergoto(NULL, 0, transiently, NULL, NULL);
-}