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

Diff of /imapfilter/data.c

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

revision 1.31 by lefcha, Mon Aug 26 20:34:25 2002 UTC revision 1.32 by lefcha, Sat Nov 9 14:21:49 2002 UTC
# Line 470  int set_action(char *line, regmatch_t * Line 470  int set_action(char *line, regmatch_t *
470      }      }
471  #ifdef DEBUG  #ifdef DEBUG
472      printf("debug: ACTION: %d '%s' '%s' %d '%s'\n", cur_fltr->action.type,      printf("debug: ACTION: %d '%s' '%s' %d '%s'\n", cur_fltr->action.type,
473             cur_fltr->action.raccount->key, cur_fltr->action.destmbox,             (cur_fltr->action.raccount ? cur_fltr->action.raccount->key : ""),
474             cur_fltr->action.msgflags, cur_fltr->action.args);             cur_fltr->action.destmbox, cur_fltr->action.msgflags,
475               cur_fltr->action.args);
476  #endif  #endif
477      return 0;      return 0;
   
478  }  }
479    
480    
# Line 585  int set_mask(char *line, regmatch_t * ma Line 585  int set_mask(char *line, regmatch_t * ma
585              bp = node->body + strlen(node->body);              bp = node->body + strlen(node->body);
586          }          }
587      }      }
 /*   for (i = 5; i <= 6; i++)  
         if (match[i].rm_so != -1) {  
             *(bp++) = ' ';  
   
             if (match[6].rm_so == -1 &&  
                 (strstr(node->body, "LARGER") ||  
                  strstr(node->body, "SMALLER") ||  
                  strstr(node->body, "OLDER") ||  
                  strstr(node->body, "NEWER")))  
                 f = 1;  
             else if (*(line + match[i].rm_so) != '"')  
                 *(bp++) = '"';  
   
             *bp = 0;  
   
             n = min(match[i].rm_eo - match[i].rm_so,  
                     MASK_BODY_LEN - (bp - node->body) - 2);  
             xstrncpy(bp, line + match[i].rm_so, n);  
             *(bp + n) = 0;  
             bp += n;  
   
             if (*(line + match[i].rm_so) != '"' && !f)  
                 *(bp++) = '"';  
             *bp = 0;  
         }  
     if (f && (strstr(node->body, "OLDER") || strstr(node->body, "NEWER"))) {  
         convert_date(node);  
         bp = node->body + strlen(node->body);  
     }*/  
   
588      append_mask(node);      append_mask(node);
589    
590      cur_fltr->masknum++;      cur_fltr->masknum++;

Legend:
Removed from v.1.31  
changed lines
  Added in v.1.32

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26