Commit c6b05cc4 c6b05cc4819e5c7ae35897536b3a00161acfa7eb by Sergey Poznyakoff

(login_delay_capa): New function.

1 parent 5239623e
...@@ -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. */
......