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 /imap/thread.c | |
| parent | 0feb9a21453515e53fbf024fd09455af42d01bf1 (diff) | |
| download | courier-libs-070a5986a3ada0cd6cbb74c77f4e41ed3c4eb48c.tar.bz2 | |
imap: handle 01-Jan-1970 as a valid search date.
Diffstat (limited to 'imap/thread.c')
| -rw-r--r-- | imap/thread.c | 9 | 
1 files changed, 8 insertions, 1 deletions
| diff --git a/imap/thread.c b/imap/thread.c index 791a7a8..883ae59 100644 --- a/imap/thread.c +++ b/imap/thread.c @@ -198,11 +198,18 @@ static void thread_os_callback(struct searchinfo *si,  			       void *voidarg)  {  	if (sihead->type == search_orderedsubj) +	{  		/* SHOULD BE ALWAYS TRUE */ +		time_t t=0; + +		if (sihead->bs) +			rfc822_parsedate_chk(sihead->bs, &t); +  		os_add( (struct os_struct *)voidarg,  			isuid ? current_maildir_info.msgs[i].uid:i+1,  			sihead->as ? sihead->as:"", -			sihead->bs ? rfc822_parsedt(sihead->bs):0); +			t); +	}  }  static void printthread(struct imap_refmsg *, int); | 
