35 |
if (state != AUTHORIZATION && state != TRANSACTION) |
if (state != AUTHORIZATION && state != TRANSACTION) |
36 |
return ERR_WRONG_STATE; |
return ERR_WRONG_STATE; |
37 |
|
|
38 |
fprintf (ofile, "+OK Capability list follows\r\n"); |
pop3d_outf ("+OK Capability list follows\r\n"); |
39 |
fprintf (ofile, "TOP\r\n"); |
pop3d_outf ("TOP\r\n"); |
40 |
fprintf (ofile, "USER\r\n"); |
pop3d_outf ("USER\r\n"); |
41 |
fprintf (ofile, "UIDL\r\n"); |
pop3d_outf ("UIDL\r\n"); |
42 |
fprintf (ofile, "RESP-CODES\r\n"); |
pop3d_outf ("RESP-CODES\r\n"); |
43 |
fprintf (ofile, "PIPELINING\r\n"); |
pop3d_outf ("PIPELINING\r\n"); |
44 |
/* FIXME: This can be Implemented by setting an header field on the |
/* FIXME: This can be Implemented by setting an header field on the |
45 |
message. */ |
message. */ |
46 |
/*fprintf (ofile, "EXPIRE NEVER\r\n"); */ |
/*pop3d_outf ("EXPIRE NEVER\r\n"); */ |
47 |
if (state == TRANSACTION) /* let's not advertise to just anyone */ |
if (state == TRANSACTION) /* let's not advertise to just anyone */ |
48 |
fprintf (ofile, "IMPLEMENTATION %s %s\r\n", IMPL, VERSION); |
pop3d_outf ("IMPLEMENTATION %s %s\r\n", IMPL, VERSION); |
49 |
fprintf (ofile, ".\r\n"); |
pop3d_outf (".\r\n"); |
50 |
return OK; |
return OK; |
51 |
} |
} |