454 |
*(bp++) = '"'; |
*(bp++) = '"'; |
455 |
*bp = 0; |
*bp = 0; |
456 |
} |
} |
457 |
if (f && (strstr(node->body, "OLDER") || strstr(node->body, "NEWER"))) |
if (f && (strstr(node->body, "OLDER") || strstr(node->body, "NEWER"))) { |
458 |
convert_date(node); |
convert_date(node); |
459 |
|
bp = node->body + strlen(node->body); |
460 |
|
} |
461 |
append_mask(node); |
append_mask(node); |
462 |
|
|
463 |
cur_fltr->masknum++; |
cur_fltr->masknum++; |
487 |
cp = xstrdup(node->body); |
cp = xstrdup(node->body); |
488 |
node->body[0] = 0; |
node->body[0] = 0; |
489 |
|
|
490 |
if (strstr(cp, "OLDER")) |
if (strstr(cp, "NOT")) |
491 |
|
strncat(node->body, "NOT ", 4); |
492 |
|
|
493 |
|
if ((c = strstr(cp, "OLDER"))) |
494 |
strncat(node->body, "BEFORE ", 7); |
strncat(node->body, "BEFORE ", 7); |
495 |
else |
else if ((c = strstr(cp, "NEWER"))) |
496 |
strncat(node->body, "SINCE ", 6); |
strncat(node->body, "SINCE ", 6); |
497 |
|
|
498 |
c = strchr(cp, ' '); |
c += 6; |
499 |
|
|
500 |
t = time(NULL) - (time_t) (strtoul(c, NULL, 10) * 24 * 60 * 60); |
t = time(NULL) - (time_t) (strtoul(c, NULL, 10) * 24 * 60 * 60); |
501 |
bt = localtime(&t); |
bt = localtime(&t); |
502 |
|
|
503 |
if (strftime(s, 15, "%d-%b-%Y", bt)) |
if (strftime(s, 15, "%d-%b-%Y", bt)) |
504 |
strncat(node->body, s, 16); |
strncat(node->body, s, 15); |
505 |
|
|
506 |
free(cp); |
free(cp); |
507 |
} |
} |