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

Diff of /imapfilter/response.c

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

revision 1.6 by lefcha, Tue Oct 2 13:33:58 2001 UTC revision 1.7 by lefcha, Thu Oct 4 14:19:31 2001 UTC
# Line 137  int fetch_response(void) Line 137  int fetch_response(void)
137      while ((pos = strchr(pos, '{'))) {      while ((pos = strchr(pos, '{'))) {
138          s = atoi(pos + 1);          s = atoi(pos + 1);
139          pos = strchr(pos, '}');          pos = strchr(pos, '}');
140            
141          for (i = 0; i < HEADERS_BUF - 1 && i < s - 2; i++)          for (i = 0; i < HEADERS_BUF - 1 && i < s - 2; i++)
142              headers[i] = *(pos + 3 + i);              headers[i] = *(pos + 3 + i);
143    
144          headers[i] = 0;          headers[i] = 0;
145    
146          if ((options & OPTION_HEADERS))          if (*headers) {
147              info("%s\n", headers);              if (options & OPTION_HEADERS)
148                            info("%s\n", headers);
         if (*headers)  
149              log_info(LOG_WRITE, headers);              log_info(LOG_WRITE, headers);
150          else          } else
151              log_info(LOG_WRITE, NULL);              log_info(LOG_WRITE, NULL);
152      }      }
153    

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

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26