/[imapfilter]/imapfilter/imap.c
ViewVC logotype

Diff of /imapfilter/imap.c

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

revision 1.27 by lefcha, Mon Feb 3 20:22:01 2003 UTC revision 1.28 by lefcha, Fri Feb 21 18:32:39 2003 UTC
# Line 20  static unsigned int tag = 0xF00000;    /* E Line 20  static unsigned int tag = 0xF00000;    /* E
20  unsigned int send_command(int *sock, char *cmd)  unsigned int send_command(int *sock, char *cmd)
21  {  {
22  #ifdef DEBUG  #ifdef DEBUG
23      printf("debug: sending command: %s", cmd);      fprintf(stderr, "debug: sending command: %s", cmd);
24  #endif  #endif
25    
26      socket_write(sock, cmd);      socket_write(sock, cmd);
# Line 92  int imap_logout(int *sock) Line 92  int imap_logout(int *sock)
92      return send_command(sock, cmd);      return send_command(sock, cmd);
93  }  }
94    
95    
96    /*
97     * IMAP AUTHENTICATE: indicates authentication mechanism and performs an
98     * authentication protocol exchange.
99     */
100    int imap_authenticate(int *sock, char *auth)
101    {
102        int r;
103        char cmd[MEDIUM_CMD];
104        
105        verbose("Client request: AUTHENTICATE\n");
106                
107        snprintf(cmd, MEDIUM_CMD, "%X AUTHENTICATE %s\r\n", tag, auth);
108        
109        return send_command(sock, cmd);
110    }
111    
112    
113  /*  /*
114   * IMAP LOGIN: identifies client to server.   * IMAP LOGIN: identifies client to server.

Legend:
Removed from v.1.27  
changed lines
  Added in v.1.28

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26