$Log$
+ Revision 573.109 2001/03/07 04:02:27 ajc
+ * Fixed some small IMAP bugs
+
Revision 573.108 2001/03/06 04:44:00 ajc
* Probable completion of STATUS, COPY, STORE, and EXPUNGE commands in IMAP
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
-
/* FIXME ... much more info needs to be supplied here */
cprintf("* %d EXISTS\r\n", msgs);
cprintf("* %d RECENT\r\n", new);
+ cprintf("* FLAGS (\\Deleted)\r\n");
+ cprintf("* OK [PERMANENTFLAGS (\\Deleted)] permanent flags\r\n");
cprintf("* OK [UIDVALIDITY 0] UIDs valid\r\n");
cprintf("%s OK [%s] %s completed\r\n",
parms[0],
/*
* Back end for cmd_user() and its ilk
*/
-int CtdlLoginExistingUser(char *username)
+int CtdlLoginExistingUser(char *trythisname)
{
+ char username[SIZ];
char autoname[SIZ];
int found_user = 0;
struct passwd *p;
int a;
- username[25] = 0;
+ if (trythisname == NULL) return login_not_found;
+ safestrncpy(username, trythisname, sizeof username);
strproc(username);
if ((CC->logged_in)) {
int code;
if ((CC->logged_in)) {
+ lprintf(5, "CtdlTryPassword: already logged in\n");
return pass_already_logged_in;
}
if (!strcmp(CC->curr_user, NLI)) {
+ lprintf(5, "CtdlTryPassword: no user selected\n");
return pass_no_user;
}
if (getuser(&CC->usersupp, CC->curr_user)) {
+ lprintf(5, "CtdlTryPassword: internal error\n");
return pass_internal_error;
}
if (password == NULL) {
+ lprintf(5, "CtdlTryPassword: NULL password string supplied\n");
return pass_wrong_password;
}
code = (-1);