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

Diff of /imapfilter/imap.c

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

revision 1.5 by lefcha, Mon Aug 20 21:40:57 2001 UTC revision 1.6 by lefcha, Mon Aug 20 22:46:24 2001 UTC
# Line 216  void generate_search_filters(char *comma Line 216  void generate_search_filters(char *comma
216          len = strlen(command);          len = strlen(command);
217          snprintf(command + len, BIG_COMMAND_MAX - len, " LARGER %d",          snprintf(command + len, BIG_COMMAND_MAX - len, " LARGER %d",
218                   dlimit);                   dlimit);
219      }      } else
220            if (!dfcnt) {           /* If no DENY filters were defined, then
     if (!dfcnt) {               /* If no DENY filters were defined, then  
221                                     deny all except the ALLOW filters. */                                     deny all except the ALLOW filters. */
222          len = strlen(command);              len = strlen(command);
223          snprintf(command + len, BIG_COMMAND_MAX - len, " ALL");              snprintf(command + len, BIG_COMMAND_MAX - len, " ALL");
224      }          }
225    
226      allow_filters(command, "NOT");      allow_filters(command, "NOT");
227    
# Line 245  void generate_search_limits(char *comman Line 244  void generate_search_limits(char *comman
244      allow_filters(command, "OR");      allow_filters(command, "OR");
245    
246      len = strlen(command);      len = strlen(command);
247      snprintf(command + len, BIG_COMMAND_MAX - len,      snprintf(command + len, BIG_COMMAND_MAX - len, " LARGER %d", alimit);
248              " LARGER %d", alimit);  
       
249      len = strlen(command);      len = strlen(command);
250      snprintf(command + len, BIG_COMMAND_MAX - len, "\r\n");      snprintf(command + len, BIG_COMMAND_MAX - len, "\r\n");
251    
# Line 301  void allow_filters(char *command, char * Line 299  void allow_filters(char *command, char *
299    
300          len = strlen(command);          len = strlen(command);
301          snprintf(command + len, BIG_COMMAND_MAX - len, " %s%s%s \"%s\"",          snprintf(command + len, BIG_COMMAND_MAX - len, " %s%s%s \"%s\"",
302                  (!strncmp(key, "NOT", 3) ? "NOT " : ""),                   (!strncmp(key, "NOT", 3) ? "NOT " : ""),
303                  custom_header(afilters[f]->custom),                   custom_header(afilters[f]->custom),
304                  afilters[f]->name, afilters[f]->body);                   afilters[f]->name, afilters[f]->body);
305      }      }
306  }  }
307    

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

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26