1 |
/* GNU Mailutils -- a suite of utilities for electronic mail |
/* GNU Mailutils -- a suite of utilities for electronic mail |
2 |
Copyright (C) 1999, 2001 Free Software Foundation, Inc. |
Copyright (C) 1999, 2001, 2003 Free Software Foundation, Inc. |
3 |
|
|
4 |
GNU Mailutils is free software; you can redistribute it and/or modify |
GNU Mailutils is free software; you can redistribute it and/or modify |
5 |
it under the terms of the GNU General Public License as published by |
it under the terms of the GNU General Public License as published by |
13 |
|
|
14 |
You should have received a copy of the GNU General Public License |
You should have received a copy of the GNU General Public License |
15 |
along with GNU Mailutils; if not, write to the Free Software |
along with GNU Mailutils; if not, write to the Free Software |
16 |
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ |
17 |
|
|
18 |
#include "imap4d.h" |
#include "imap4d.h" |
19 |
|
|
28 |
imap4d_capability (struct imap4d_command *command, char *arg) |
imap4d_capability (struct imap4d_command *command, char *arg) |
29 |
{ |
{ |
30 |
int i; |
int i; |
31 |
|
|
32 |
(void)arg; |
(void) arg; |
33 |
util_send ("* CAPABILITY"); |
util_send ("* CAPABILITY"); |
34 |
|
|
35 |
for (i = 0; capa[i]; i++) |
for (i = 0; capa[i]; i++) |
36 |
util_send(" %s", capa[i]); |
util_send (" %s", capa[i]); |
37 |
|
|
38 |
|
#ifdef WITH_TLS |
39 |
|
if (tls_available) |
40 |
|
util_send (" STARTTLS"); |
41 |
|
#endif /* WITH_TLS */ |
42 |
|
|
43 |
imap4d_auth_capability (); |
imap4d_auth_capability (); |
44 |
util_send("\r\n"); |
util_send ("\r\n"); |
45 |
|
|
46 |
return util_finish (command, RESP_OK, "Completed"); |
return util_finish (command, RESP_OK, "Completed"); |
47 |
} |
} |