/[mailutils]/mailutils/imap4d/capability.c
ViewVC logotype

Diff of /mailutils/imap4d/capability.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.11 by polak, Sun Dec 29 12:52:06 2002 UTC revision 1.12 by polak, Fri Jan 17 19:07:15 2003 UTC
# Line 1  Line 1 
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
# Line 13  Line 13 
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    
# Line 28  int Line 28  int
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  }  }

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26