Commit c6b05cc4 c6b05cc4819e5c7ae35897536b3a00161acfa7eb by Sergey Poznyakoff

(login_delay_capa): New function.

1 parent 5239623e
......@@ -115,4 +115,15 @@ update_login_delay (char *username)
mu_dbm_close (db);
}
void
login_delay_capa ()
{
DBM_FILE db;
if (login_delay && open_stat_db (&db, MU_STREAM_RDWR) == 0)
{
pop3d_outf ("LOGIN-DELAY %lu\r\n", (unsigned long)login_delay);
mu_dbm_close (db);
}
}
#endif
......
......@@ -83,9 +83,11 @@ extern time_t login_delay;
extern char *login_stat_file;
extern int check_login_delay __P((char *username));
extern void update_login_delay __P((char *username));
extern void login_delay_capa __P((void));
#else
# define check_login_delay(u) 0
# define update_login_delay(u)
# define login_delay_capa()
#endif
/* Minimum advertise retention time for messages. */
......