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; |
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, |