From 070a5986a3ada0cd6cbb74c77f4e41ed3c4eb48c Mon Sep 17 00:00:00 2001 From: Sam Varshavchik Date: Wed, 4 Mar 2015 20:10:05 -0500 Subject: imap: handle 01-Jan-1970 as a valid search date. --- rfc2045/rfc2045reply.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'rfc2045/rfc2045reply.c') diff --git a/rfc2045/rfc2045reply.c b/rfc2045/rfc2045reply.c index 52d7b71..a3b57b5 100644 --- a/rfc2045/rfc2045reply.c +++ b/rfc2045/rfc2045reply.c @@ -38,7 +38,7 @@ static void mksalutation_datefmt(const char *fmt_start, fmt_end=fmt_start + strlen(fmt_start); } - if ((t=rfc822_parsedt(date))) + if (rfc822_parsedate_chk(date, &t) == 0) { struct tm tmbuf; @@ -710,7 +710,7 @@ static int mkforward(struct rfc2045_mkreplyinfo *ri) if (textplain_content) { /* Copy original headers. */ - + hi=rfc2045header_start(ri->src, ri->rfc2045partp); for (;;) { @@ -795,7 +795,7 @@ static int mkforward(struct rfc2045_mkreplyinfo *ri) rfc2045_mimepos(first_attachment, &start_pos, &end_pos, &start_body, &dummy, &dummy); - + if (SRC_SEEK(ri->src, start_pos) == (off_t)-1) { if (subject) free(subject); @@ -819,7 +819,7 @@ static int mkforward(struct rfc2045_mkreplyinfo *ri) &end_pos, &start_body, &dummy, &dummy); - + if (SRC_SEEK(ri->src, start_pos) == (off_t)-1) { if (subject) free(subject); -- cgit v1.2.3