Mercurial > dovecot > original-hg > dovecot-1.2
annotate src/imap/cmd-capability.c @ 9575:0a00dcc4f0ea HEAD
lib-storage: Allow shared namespace prefix to use %variable modifiers.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 26 May 2010 17:07:51 +0100 |
parents | 00cd9aacd03c |
children |
rev | line source |
---|---|
9532
00cd9aacd03c
Updated copyright notices to include year 2010.
Timo Sirainen <tss@iki.fi>
parents:
8590
diff
changeset
|
1 /* Copyright (c) 2002-2010 Dovecot authors, see the included COPYING file */ |
0 | 2 |
3 #include "common.h" | |
4 #include "commands.h" | |
1586
898a95426118
Keep capability in string_t so plugins can modify it.
Timo Sirainen <tss@iki.fi>
parents:
1552
diff
changeset
|
5 #include "str.h" |
0 | 6 |
3863
55df57c028d4
Added "bool" type and changed all ints that were used as booleans to bool.
Timo Sirainen <tss@iki.fi>
parents:
3141
diff
changeset
|
7 bool cmd_capability(struct client_command_context *cmd) |
0 | 8 { |
3141
61abed5f7864
Moved command-specific variables from struct client to struct
Timo Sirainen <tss@iki.fi>
parents:
1586
diff
changeset
|
9 client_send_line(cmd->client, |
61abed5f7864
Moved command-specific variables from struct client to struct
Timo Sirainen <tss@iki.fi>
parents:
1586
diff
changeset
|
10 t_strconcat("* CAPABILITY ", |
61abed5f7864
Moved command-specific variables from struct client to struct
Timo Sirainen <tss@iki.fi>
parents:
1586
diff
changeset
|
11 str_c(capability_string), NULL)); |
0 | 12 |
3141
61abed5f7864
Moved command-specific variables from struct client to struct
Timo Sirainen <tss@iki.fi>
parents:
1586
diff
changeset
|
13 client_send_tagline(cmd, "OK Capability completed."); |
0 | 14 return TRUE; |
15 } |