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

Diff of /imapfilter/response.c

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

revision 1.48 by lefcha, Fri Feb 13 12:17:16 2004 UTC revision 1.49 by lefcha, Fri Feb 13 13:18:38 2004 UTC
# Line 29  int analyze_response(connection_t * conn Line 29  int analyze_response(connection_t * conn
29  void  void
30  receive_response(connection_t * conn, char *buf)  receive_response(connection_t * conn, char *buf)
31  {  {
32    
33          if (socket_read(conn, buf) == ERROR_NETWORK)          if (socket_read(conn, buf) == ERROR_NETWORK)
34                  longjmp(acctloop, -1);                  longjmp(acctloop, -1);
35    
# Line 43  receive_response(connection_t * conn, ch Line 44  receive_response(connection_t * conn, ch
44  int  int
45  response_generic(connection_t * conn, unsigned int tag)  response_generic(connection_t * conn, unsigned int tag)
46  {  {
47    
48          buffer_reset(&ibuf);          buffer_reset(&ibuf);
49    
50          do {          do {
# Line 61  response_generic(connection_t * conn, un Line 63  response_generic(connection_t * conn, un
63  void  void
64  response_bye(char *buf)  response_bye(char *buf)
65  {  {
66    
67          if (strcasestr(buf, "* BYE"))          if (strcasestr(buf, "* BYE"))
68                  longjmp(acctloop, -1);                  longjmp(acctloop, -1);
69  }  }
# Line 72  response_bye(char *buf) Line 75  response_bye(char *buf)
75  int  int
76  response_greeting(connection_t * conn)  response_greeting(connection_t * conn)
77  {  {
78    
79          buffer_reset(&ibuf);          buffer_reset(&ibuf);
80    
81          receive_response(conn, ibuf.data);          receive_response(conn, ibuf.data);
# Line 93  response_greeting(connection_t * conn) Line 97  response_greeting(connection_t * conn)
97  int  int
98  response_logout(connection_t * conn, unsigned int tag)  response_logout(connection_t * conn, unsigned int tag)
99  {  {
100    
101          buffer_reset(&ibuf);          buffer_reset(&ibuf);
102    
103          do {          do {
# Line 110  response_logout(connection_t * conn, uns Line 115  response_logout(connection_t * conn, uns
115  int  int
116  response_capability(connection_t * conn, unsigned int tag)  response_capability(connection_t * conn, unsigned int tag)
117  {  {
118    
119          buffer_reset(&ibuf);          buffer_reset(&ibuf);
120    
121          do {          do {
# Line 255  response_status(connection_t * conn, uns Line 261  response_status(connection_t * conn, uns
261  int  int
262  response_select(connection_t * conn, unsigned int tag)  response_select(connection_t * conn, unsigned int tag)
263  {  {
264    
265          buffer_reset(&ibuf);          buffer_reset(&ibuf);
266    
267          do {          do {

Legend:
Removed from v.1.48  
changed lines
  Added in v.1.49

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26