diff options
| author | Sam Varshavchik | 2015-03-04 20:10:05 -0500 | 
|---|---|---|
| committer | Sam Varshavchik | 2015-03-04 20:10:05 -0500 | 
| commit | 070a5986a3ada0cd6cbb74c77f4e41ed3c4eb48c (patch) | |
| tree | 96f6fe07a4a3be2812f20feb5611d6efdf820e95 /rfc822/imaprefs.c | |
| parent | 0feb9a21453515e53fbf024fd09455af42d01bf1 (diff) | |
| download | courier-libs-070a5986a3ada0cd6cbb74c77f4e41ed3c4eb48c.tar.bz2 | |
imap: handle 01-Jan-1970 as a valid search date.
Diffstat (limited to 'rfc822/imaprefs.c')
| -rw-r--r-- | rfc822/imaprefs.c | 6 | 
1 files changed, 4 insertions, 2 deletions
| diff --git a/rfc822/imaprefs.c b/rfc822/imaprefs.c index dc58869..b5f9a7d 100644 --- a/rfc822/imaprefs.c +++ b/rfc822/imaprefs.c @@ -523,7 +523,9 @@ static struct imap_refmsg *threadmsg_common(struct imap_refmsg *m,  		return (0);	/* Cleanup in rfc822_threadfree() */  	if (dateheader) -		dateheader_tm=rfc822_parsedt(dateheader); +	{ +		rfc822_parsedate_chk(dateheader, &dateheader_tm); +	}  	m->timestamp=dateheader_tm; @@ -567,7 +569,7 @@ struct imap_refmsg *rfc822_threadgetroot(struct imap_refmsgtable *mt)  }  /* -**  +**  **       (3) Prune dummy messages from the thread tree.  Traverse each  **        thread under the root, and for each message:  */ | 
