//
// This program is open source software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License, version 3.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
#include <stdlib.h>
#include <unistd.h>
// Continue attempting user validation...
safestrncpy(username, trythisname, sizeof (username));
- striplt(username);
+ string_trim(username);
if (IsEmptyStr(username)) {
return login_not_found;
}
-// Count the number of new mail messages the user has
+// Return the number of new messages that have arrived in the user's inbox while they were logged in.
+// Resets to zero when called.
int NewMailCount() {
int num_newmsgs = 0;
num_newmsgs = CC->newmail;