summaryrefslogtreecommitdiffstats
path: root/daemon
diff options
context:
space:
mode:
authorwens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-08-21 14:45:53 +0800
committerwens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-08-21 14:45:53 +0800
commit0abcade983fca58880c8ee0f98883ac3e0de4b39 (patch)
tree8038f42a2e8d47c3963f681a82cb07137a118e25 /daemon
parentfa07d1dbd8d62ce2f7bd0e6166b9db26672ae496 (diff)
downloadpttbbs-0abcade983fca58880c8ee0f98883ac3e0de4b39.tar
pttbbs-0abcade983fca58880c8ee0f98883ac3e0de4b39.tar.gz
pttbbs-0abcade983fca58880c8ee0f98883ac3e0de4b39.tar.bz2
pttbbs-0abcade983fca58880c8ee0f98883ac3e0de4b39.tar.lz
pttbbs-0abcade983fca58880c8ee0f98883ac3e0de4b39.tar.xz
pttbbs-0abcade983fca58880c8ee0f98883ac3e0de4b39.tar.zst
pttbbs-0abcade983fca58880c8ee0f98883ac3e0de4b39.zip
Add CAPA command
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4404 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'daemon')
-rw-r--r--daemon/bpop3d/bpop3d.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/daemon/bpop3d/bpop3d.c b/daemon/bpop3d/bpop3d.c
index 54923002..47811730 100644
--- a/daemon/bpop3d/bpop3d.c
+++ b/daemon/bpop3d/bpop3d.c
@@ -48,6 +48,12 @@ cmd_unknown(struct client_state *cs, const char * arg)
}
void
+cmd_capa(struct client_state *cs, const char * arg)
+{
+ evbuffer_add_printf(cs->evb_write, "+OK\r\nUSER\r\n.\r\n");
+}
+
+void
cmd_user(struct client_state *cs, const char * arg)
{
cs->uid = searchuser(arg, cs->userid);
@@ -92,6 +98,7 @@ static const CMD auth_cmdlist[] = {
{"user", cmd_user},
{"pass", cmd_pass},
{"quit", cmd_quit},
+ {"capa", cmd_capa},
{NULL, cmd_unknown}
};
@@ -142,6 +149,7 @@ static const CMD trans_cmdlist[] = {
{"dele", cmd_dele},
{"noop", cmd_noop},
{"rset", cmd_rset},
+ {"capa", cmd_capa},
{"quit", cmd_quit},
{NULL, cmd_unknown}
};