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

Diff of /imapfilter/imap.c

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

revision 1.22 by lefcha, Fri Jan 25 17:10:17 2002 UTC revision 1.23 by lefcha, Tue Jan 29 21:23:41 2002 UTC
# Line 22  unsigned int send_command(char *cmd) Line 22  unsigned int send_command(char *cmd)
22  #endif  #endif
23    
24      socket_write(cmd);      socket_write(cmd);
25        
26      return tag++;      return tag++;
27  }  }
28    
# Line 95  int imap_logout(void) Line 95  int imap_logout(void)
95   */   */
96  int imap_login(char *user, char *pass)  int imap_login(char *user, char *pass)
97  {  {
98      char cmd[MEDIUM_CMD];      int r;
99        char *cmd;
100        
101        cmd = (char *) smalloc(MEDIUM_CMD);
102    
103      verbose("Client request: LOGIN\n");      verbose("Client request: LOGIN\n");
104    
105      snprintf(cmd, MEDIUM_CMD, "%X LOGIN \"%s\" \"%s\"\r\n", tag, user,      snprintf(cmd, MEDIUM_CMD, "%X LOGIN \"%s\" \"%s\"\r\n", tag, user,
106               pass);               pass);
107    
108      return send_command(cmd);      r = send_command(cmd);
109        
110        sfree(cmd);
111    
112        return r;
113  }  }
114    
115    

Legend:
Removed from v.1.22  
changed lines
  Added in v.1.23

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26