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

Diff of /imapfilter/match.c

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

revision 1.5 by lefcha, Mon Feb 9 22:03:33 2004 UTC revision 1.6 by lefcha, Tue Feb 10 22:21:09 2004 UTC
# Line 7  Line 7 
7  #include "filter.h"  #include "filter.h"
8    
9    
10    extern opts_t opts;
11  extern conn_t connpri, connaux;  extern conn_t connpri, connaux;
 extern char charset[CHARSET_LEN];  
12    
13    
14  int match_filter(filter_t * filter, char **mesgs);  int match_filter(filter_t * filter, char **mesgs);
15    
16  char * generate_filter_and(mask_t * mask, unsigned int masknum, unsigned int masklen);  char *generate_filter_and(mask_t * mask, unsigned int masknum, unsigned int masklen);
17  char * generate_filter_or(mask_t * mask, unsigned int masknum, unsigned int masklen);  char *generate_filter_or(mask_t * mask, unsigned int masknum, unsigned int masklen);
18  char *normalize_mask(char *body);  char *normalize_mask(char *body);
19  void convert_date(char *body);  void convert_date(char *body);
20    
# Line 67  match_filter(filter_t * filter, char **m Line 67  match_filter(filter_t * filter, char **m
67                  search = generate_filter_and(filter->masks, filter->masknum,                  search = generate_filter_and(filter->masks, filter->masknum,
68                      filter->masklen);                      filter->masklen);
69    
70          search_response(&connpri, imap_search(&connpri, charset, search),          search_response(&connpri, imap_search(&connpri, opts.charset, search),
71              mesgs);              mesgs);
72    
73          xfree(search);          xfree(search);

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

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26