[PATCH v4 2/9] parse-time-string: add a date/time parser to notmuch

2012-10-17 Thread Jani Nikula
On Mon, 15 Oct 2012, Ethan Glasser-Camp wrote: >> +/* Parse a previously postponed number if one exists. */ >> +static int parse_postponed_number (struct state *state, int v, int n, char >> d); >> +static int >> +handle_postponed_number (struct state *state, enum field next_field) >> +{ >> +

Re: [PATCH v4 2/9] parse-time-string: add a date/time parser to notmuch

2012-10-17 Thread Jani Nikula
On Mon, 15 Oct 2012, Ethan Glasser-Camp ethan.glasser.c...@gmail.com wrote: +/* Parse a previously postponed number if one exists. */ +static int parse_postponed_number (struct state *state, int v, int n, char d); +static int +handle_postponed_number (struct state *state, enum field

[PATCH v4 2/9] parse-time-string: add a date/time parser to notmuch

2012-10-15 Thread Ethan Glasser-Camp
Jani Nikula writes: Hi! I commend you for your work and persistence. This represents a lot of work and I think it's good enough to be merged. I would certainly love to see "last" and "ago" supported but this patch series, and this patch especially, is cumbersome enough that I'd really rather it

[PATCH v4 2/9] parse-time-string: add a date/time parser to notmuch

2012-10-14 Thread Jani Nikula
Add a date/time parser to notmuch, to be used for adding date range query support for notmuch lib later on. Add the parser to a directory of its own to make it independent of the rest of the notmuch code base. Signed-off-by: Jani Nikula --- Makefile |2 +-

Re: [PATCH v4 2/9] parse-time-string: add a date/time parser to notmuch

2012-10-14 Thread Ethan Glasser-Camp
Jani Nikula j...@nikula.org writes: Hi! I commend you for your work and persistence. This represents a lot of work and I think it's good enough to be merged. I would certainly love to see last and ago supported but this patch series, and this patch especially, is cumbersome enough that I'd really