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

Diff of /imapfilter/data.c

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

revision 1.36 by lefcha, Sat Feb 22 16:06:41 2003 UTC revision 1.37 by lefcha, Thu Mar 6 15:00:46 2003 UTC
# Line 399  set_action(char *line, regmatch_t * m) Line 399  set_action(char *line, regmatch_t * m)
399  {  {
400          char *c, *cp, *t;          char *c, *cp, *t;
401          account_t *a;          account_t *a;
         char s[MBOX_NAME_LEN];  
         time_t te;  
         struct tm *tl;  
402    
403          if (cur_fltr == NULL)          if (cur_fltr == NULL)
404                  return ERROR_CONFIG_PARSE;                  return ERROR_CONFIG_PARSE;
# Line 510  set_action(char *line, regmatch_t * m) Line 507  set_action(char *line, regmatch_t * m)
507                  while ((c = strchr(cur_fltr->action.args, ',')))                  while ((c = strchr(cur_fltr->action.args, ',')))
508                          *c = ' ';                          *c = ' ';
509          }          }
         if (*cur_fltr->action.destmbox != '\0' &&  
             strchr(cur_fltr->action.destmbox, '%')) {  
                 te = time(NULL);  
                 tl = localtime(&te);  
                 if (strftime(s, MBOX_NAME_LEN - 1,  
                         cur_fltr->action.destmbox, tl))  
                         xstrncpy(cur_fltr->action.destmbox, s,  
                             MBOX_NAME_LEN - 1);  
         }  
510  #ifdef DEBUG  #ifdef DEBUG
511          fprintf(stderr, "debug: ACTION: %d '%s' '%s' %d '%s'\n",          fprintf(stderr, "debug: ACTION: %d '%s' '%s' %d '%s'\n",
512              cur_fltr->action.type,              cur_fltr->action.type,

Legend:
Removed from v.1.36  
changed lines
  Added in v.1.37

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26