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

Diff of /imapfilter/imap.c

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

revision 1.16 by lefcha, Mon Oct 8 08:52:49 2001 UTC revision 1.17 by lefcha, Wed Oct 17 14:06:20 2001 UTC
# Line 9  Line 9 
9  #include "data.h"  #include "data.h"
10    
11    
 extern int sock;  
   
12  static unsigned int tag = 0xF00000;     /* Every IMAP command is prefixed  static unsigned int tag = 0xF00000;     /* Every IMAP command is prefixed
13                                             with a unique [:alnum:] string. */                                             with a unique [:alnum:] string. */
14    
# Line 19  static unsigned int tag = 0xF00000;    /* E Line 17  static unsigned int tag = 0xF00000;    /* E
17   */   */
18  unsigned int send_command(char *cmd)  unsigned int send_command(char *cmd)
19  {  {
   
20  #ifdef DEBUG  #ifdef DEBUG
21      printf("debug: sending command: %s", cmd);      printf("debug: sending command: %s", cmd);
22  #endif  #endif
23        
24      if (write(sock, cmd, strlen(cmd)) == -1)      socket_write(cmd);
         fatal(ERROR_NETWORK, "imapfilter: error while sending command; %s",  
               strerror(errno));  
25    
26      return tag++;      return tag++;
27  }  }

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26