/[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.7 by gray, Mon May 28 14:24:47 2001 UTC revision 1.8 by gray, Thu Feb 7 16:05:05 2002 UTC
# Line 17  Line 17 
17    
18  #include "imap4d.h"  #include "imap4d.h"
19    
20    char *capa[] = {
21      "IMAP4rev1",
22      "NAMESPACE",
23    #ifdef WITH_GSSAPI
24      "AUTH=GSSAPI",
25    #endif
26      NULL
27    };
28    
29  int  int
30  imap4d_capability (struct imap4d_command *command, char *arg)  imap4d_capability (struct imap4d_command *command, char *arg)
31  {  {
32      int i;
33      
34    (void)arg;    (void)arg;
35    if (! (command->states & state))    if (! (command->states & state))
36      return util_finish (command, RESP_BAD, "Wrong state");      return util_finish (command, RESP_BAD, "Wrong state");
37    util_out (RESP_NONE,  "CAPABILITY IMAP4rev1 NAMESPACE");    util_send ("* CAPABILITY");
38      for (i = 0; capa[i]; i++)
39        util_send(" %s", capa[i]);
40      util_send("\r\n");
41    return util_finish (command, RESP_OK, "Completed");    return util_finish (command, RESP_OK, "Completed");
42  }  }

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

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