(login_delay_capa): New function.
Showing
2 changed files
with
13 additions
and
0 deletions
... | @@ -115,4 +115,15 @@ update_login_delay (char *username) | ... | @@ -115,4 +115,15 @@ update_login_delay (char *username) |
115 | mu_dbm_close (db); | 115 | mu_dbm_close (db); |
116 | } | 116 | } |
117 | 117 | ||
118 | void | ||
119 | login_delay_capa () | ||
120 | { | ||
121 | DBM_FILE db; | ||
122 | |||
123 | if (login_delay && open_stat_db (&db, MU_STREAM_RDWR) == 0) | ||
124 | { | ||
125 | pop3d_outf ("LOGIN-DELAY %lu\r\n", (unsigned long)login_delay); | ||
126 | mu_dbm_close (db); | ||
127 | } | ||
128 | } | ||
118 | #endif | 129 | #endif | ... | ... |
... | @@ -83,9 +83,11 @@ extern time_t login_delay; | ... | @@ -83,9 +83,11 @@ extern time_t login_delay; |
83 | extern char *login_stat_file; | 83 | extern char *login_stat_file; |
84 | extern int check_login_delay __P((char *username)); | 84 | extern int check_login_delay __P((char *username)); |
85 | extern void update_login_delay __P((char *username)); | 85 | extern void update_login_delay __P((char *username)); |
86 | extern void login_delay_capa __P((void)); | ||
86 | #else | 87 | #else |
87 | # define check_login_delay(u) 0 | 88 | # define check_login_delay(u) 0 |
88 | # define update_login_delay(u) | 89 | # define update_login_delay(u) |
90 | # define login_delay_capa() | ||
89 | #endif | 91 | #endif |
90 | 92 | ||
91 | /* Minimum advertise retention time for messages. */ | 93 | /* Minimum advertise retention time for messages. */ | ... | ... |
-
Please register or sign in to post a comment