Commit 7419d7a7 authored by Richard Curnow's avatar Richard Curnow

Corresponds to CVS V0.11pre6

Original rev  : rc@rc0.org.uk--historical/mairix--history--0--patch-20
parent f9333637
......@@ -2,6 +2,7 @@ NEW IN VERSION 0.11
===================
* Detect failed malloc (out of memory) conditions properly and report it.
* Improved date specification syntax for d: option
NEW IN VERSION 0.10
===================
......
......@@ -15,5 +15,5 @@ close (OUT);
unlink "mairix.spec.sample";
system("cvs export -d dfasyn dfasyn V0_2");
system("cvs export -d dfasyn -r V0_2 dfasyn");
/*
* Scan a date string to return stuff.
* */
$Header: /cvs/src/mairix/dates.c,v 1.2 2003/03/03 00:20:58 richard Exp $
mairix - message index builder and finder for maildir folders.
**********************************************************************
* Copyright (C) Richard P. Curnow 2002, 2003
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of version 2 of the GNU General Public License as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
**********************************************************************
*/
#include <stdio.h>
#include <string.h>
......@@ -337,6 +357,7 @@ int scan_date_string(char *in, time_t *start, int *has_start, time_t *end, int *
status = scan_date_expr(hyphen+1, nullchar, NULL, &end_tm);
if (status) return status;
*end = mktime(&end_tm);
start_tm = end_tm;
}
if (hyphen > in) {
*has_start = 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment