32 |
MODE_INTERACTIVE, /* Start in interactive (inetd) mode */ |
MODE_INTERACTIVE, /* Start in interactive (inetd) mode */ |
33 |
20, /* Default maximum number of children */ |
20, /* Default maximum number of children */ |
34 |
110, /* Standard POP3 port */ |
110, /* Standard POP3 port */ |
35 |
600 /* Idle timeout */ |
600, /* Idle timeout */ |
36 |
|
0, /* No transcript by default */ |
37 |
}; |
}; |
38 |
|
|
39 |
/* Number of child processes. */ |
/* Number of child processes. */ |
256 |
} |
} |
257 |
|
|
258 |
/* Lets boogie. */ |
/* Lets boogie. */ |
259 |
fprintf (ofile, "+OK POP3 Ready %s\r\n", md5shared); |
pop3d_outf ("+OK POP3 Ready %s\r\n", md5shared); |
260 |
|
|
261 |
while (state != UPDATE) |
while (state != UPDATE) |
262 |
{ |
{ |
324 |
if (status == OK) |
if (status == OK) |
325 |
; /* Everything is good. */ |
; /* Everything is good. */ |
326 |
else if (status == ERR_WRONG_STATE) |
else if (status == ERR_WRONG_STATE) |
327 |
fprintf (ofile, "-ERR " BAD_STATE "\r\n"); |
pop3d_outf ("-ERR " BAD_STATE "\r\n"); |
328 |
else if (status == ERR_BAD_ARGS) |
else if (status == ERR_BAD_ARGS) |
329 |
fprintf (ofile, "-ERR " BAD_ARGS "\r\n"); |
pop3d_outf ("-ERR " BAD_ARGS "\r\n"); |
330 |
else if (status == ERR_NO_MESG) |
else if (status == ERR_NO_MESG) |
331 |
fprintf (ofile, "-ERR " NO_MESG "\r\n"); |
pop3d_outf ("-ERR " NO_MESG "\r\n"); |
332 |
else if (status == ERR_MESG_DELE) |
else if (status == ERR_MESG_DELE) |
333 |
fprintf (ofile, "-ERR " MESG_DELE "\r\n"); |
pop3d_outf ("-ERR " MESG_DELE "\r\n"); |
334 |
else if (status == ERR_NOT_IMPL) |
else if (status == ERR_NOT_IMPL) |
335 |
fprintf (ofile, "-ERR " NOT_IMPL "\r\n"); |
pop3d_outf ("-ERR " NOT_IMPL "\r\n"); |
336 |
else if (status == ERR_BAD_CMD) |
else if (status == ERR_BAD_CMD) |
337 |
fprintf (ofile, "-ERR " BAD_COMMAND "\r\n"); |
pop3d_outf ("-ERR " BAD_COMMAND "\r\n"); |
338 |
else if (status == ERR_BAD_LOGIN) |
else if (status == ERR_BAD_LOGIN) |
339 |
fprintf (ofile, "-ERR " BAD_LOGIN "\r\n"); |
pop3d_outf ("-ERR " BAD_LOGIN "\r\n"); |
340 |
else if (status == ERR_MBOX_LOCK) |
else if (status == ERR_MBOX_LOCK) |
341 |
fprintf (ofile, "-ERR [IN-USE] " MBOX_LOCK "\r\n"); |
pop3d_outf ("-ERR [IN-USE] " MBOX_LOCK "\r\n"); |
342 |
else if (status == ERR_TOO_LONG) |
else if (status == ERR_TOO_LONG) |
343 |
fprintf (ofile, "-ERR " TOO_LONG "\r\n"); |
pop3d_outf ("-ERR " TOO_LONG "\r\n"); |
344 |
else if (status == ERR_FILE) |
else if (status == ERR_FILE) |
345 |
fprintf (ofile, "-ERR " FILE_EXP "\r\n"); |
pop3d_outf ("-ERR " FILE_EXP "\r\n"); |
346 |
else |
else |
347 |
fprintf (ofile, "-ERR unknown error\r\n"); |
pop3d_outf ("-ERR unknown error\r\n"); |
348 |
|
|
349 |
free (cmd); |
free (cmd); |
350 |
free (arg); |
free (arg); |