This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "GNU Mailutils".
http://git.savannah.gnu.org/cgit/mailutils.git/commit/?id=68f8161910688e280d736d7c187cbf86afd7c826 The branch, master has been updated via 68f8161910688e280d736d7c187cbf86afd7c826 (commit) from 836d8ad109de5517ff1aa5ef61a557f5ed240081 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 68f8161910688e280d736d7c187cbf86afd7c826 Author: Sergey Poznyakoff <g...@gnu.org> Date: Sun Aug 10 13:48:02 2014 +0300 imap-related bugfixes. * imap4d/search.c (imap4d_search0): Use parsebuf.err_mesg if defined, otherwise fall back to the general "parse error" message. * include/mailutils/datetime.h (MU_DATETIME_INTERNALDATE): Use %e for day. Day can be one-digit decimal. * libmailutils/datetime/scantime.c (mu_scan_datetime): Skip initial ws for %e. * mu/imap.c (com_search): Print newline after the "no matches" message. ----------------------------------------------------------------------- Summary of changes: imap4d/search.c | 2 +- include/mailutils/datetime.h | 2 +- libmailutils/datetime/scantime.c | 4 +++- mu/imap.c | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/imap4d/search.c b/imap4d/search.c index 288c0aa..fd10fb0 100644 --- a/imap4d/search.c +++ b/imap4d/search.c @@ -313,8 +313,8 @@ imap4d_search0 (imap4d_tokbuf_t tok, int isuid, char **err_text) parsebuf.tree = parse_search_key_list (&parsebuf); if (!parsebuf.tree) { + *err_text = parsebuf.err_mesg ? parsebuf.err_mesg : "Parse error"; parse_free_mem (&parsebuf); - *err_text = "Parse error"; return RESP_BAD; } diff --git a/include/mailutils/datetime.h b/include/mailutils/datetime.h index 6556eca..369ffb7 100644 --- a/include/mailutils/datetime.h +++ b/include/mailutils/datetime.h @@ -79,7 +79,7 @@ int mu_scan_datetime (const char *input, const char *fmt, struct tm *tm, #define MU_DATETIME_FROM_LENGTH 24 #define MU_DATETIME_IMAP "%d-%b-%Y %H:%M:%S %z" -#define MU_DATETIME_INTERNALDATE "%d-%b-%Y%$ %H:%M:%S %z" +#define MU_DATETIME_INTERNALDATE "%e-%b-%Y%$ %H:%M:%S %z" /* RFC2822 date. Scan format contains considerable allowances which would stun formatting functions, therefore two distinct formats are provided: diff --git a/libmailutils/datetime/scantime.c b/libmailutils/datetime/scantime.c index 0c92f57..d63c0a6 100644 --- a/libmailutils/datetime/scantime.c +++ b/libmailutils/datetime/scantime.c @@ -424,7 +424,9 @@ mu_scan_datetime (const char *input, const char *fmt, leading zero is replaced by a space. */ { int ndig; - + + if (*input == ' ') + ++input; n = get_num (input, &p, 2, 1, 31, &ndig); if (n == -1) rc = MU_ERR_PARSE; diff --git a/mu/imap.c b/mu/imap.c index 519874c..01e1c7c 100644 --- a/mu/imap.c +++ b/mu/imap.c @@ -1138,7 +1138,7 @@ com_search (int argc, char **argv) rc = mu_msgset_count (mset, &count); if (rc == EINVAL || count == 0) { - mu_printf (_("no matches")); + mu_printf ("%s\n", _("no matches")); return 0; } mu_printf ("%lu matches:", (unsigned long) count); hooks/post-receive -- GNU Mailutils _______________________________________________ Commit-mailutils mailing list Commit-mailutils@gnu.org https://lists.gnu.org/mailman/listinfo/commit-mailutils