From MAILER-DAEMON Sun Aug 10 06:52:57 2014
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1XGQkD-0001uU-OO
	for mharc-commit-mailutils@gnu.org; Sun, 10 Aug 2014 06:52:57 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:38472)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1XGQkA-0001uO-RD
	for commit-mailutils@gnu.org; Sun, 10 Aug 2014 06:52:55 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1XGQk9-0007wc-Np
	for commit-mailutils@gnu.org; Sun, 10 Aug 2014 06:52:54 -0400
Received: from vcs.savannah.gnu.org ([140.186.70.72]:48719)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1XGQk9-0007wY-L0
	for commit-mailutils@gnu.org; Sun, 10 Aug 2014 06:52:53 -0400
Received: from gray by vcs.savannah.gnu.org with local (Exim 4.72)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1XGQk8-0000Kr-5C
	for commit-mailutils@gnu.org; Sun, 10 Aug 2014 10:52:52 +0000
Date: Sun, 10 Aug 2014 10:52:52 +0000
Message-Id: <E1XGQk8-0000Kr-5C@vcs.savannah.gnu.org>
From: "Sergey Poznyakoff" <gray@gnu.org>
To: commit-mailutils@gnu.org
Subject: [SCM] GNU Mailutils branch, master, updated. release-2.2-688-g68f8161
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: 836d8ad109de5517ff1aa5ef61a557f5ed240081
X-Git-Newrev: 68f8161910688e280d736d7c187cbf86afd7c826
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 140.186.70.72
X-BeenThere: commit-mailutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Commit notices for GNU mailutils <commit-mailutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/commit-mailutils>,
	<mailto:commit-mailutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/commit-mailutils>
List-Post: <mailto:commit-mailutils@gnu.org>
List-Help: <mailto:commit-mailutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/commit-mailutils>,
	<mailto:commit-mailutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 10 Aug 2014 10:52:55 -0000

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 <gray@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


From MAILER-DAEMON Thu Aug 14 16:57:40 2014
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1XI25c-0003rn-Fu
	for mharc-commit-mailutils@gnu.org; Thu, 14 Aug 2014 16:57:40 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:58197)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1XI25a-0003rh-Dr
	for commit-mailutils@gnu.org; Thu, 14 Aug 2014 16:57:39 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1XI25Z-0004X2-Bj
	for commit-mailutils@gnu.org; Thu, 14 Aug 2014 16:57:38 -0400
Received: from vcs.savannah.gnu.org ([140.186.70.72]:51142)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1XI25Z-0004Wy-7q
	for commit-mailutils@gnu.org; Thu, 14 Aug 2014 16:57:37 -0400
Received: from gray by vcs.savannah.gnu.org with local (Exim 4.72)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1XI25X-0002Ak-2d
	for commit-mailutils@gnu.org; Thu, 14 Aug 2014 20:57:36 +0000
Date: Thu, 14 Aug 2014 20:57:35 +0000
Message-Id: <E1XI25X-0002Ak-2d@vcs.savannah.gnu.org>
From: "Sergey Poznyakoff" <gray@gnu.org>
To: commit-mailutils@gnu.org
Subject: [SCM] GNU Mailutils branch, master, updated. release-2.2-689-g25f14bd
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: 68f8161910688e280d736d7c187cbf86afd7c826
X-Git-Newrev: 25f14bddd6a2df8d0b85a40d6a179170f0f57311
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 140.186.70.72
X-BeenThere: commit-mailutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Commit notices for GNU mailutils <commit-mailutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/commit-mailutils>,
	<mailto:commit-mailutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/commit-mailutils>
List-Post: <mailto:commit-mailutils@gnu.org>
List-Help: <mailto:commit-mailutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/commit-mailutils>,
	<mailto:commit-mailutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 14 Aug 2014 20:57:39 -0000

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=25f14bddd6a2df8d0b85a40d6a179170f0f57311

The branch, master has been updated
       via  25f14bddd6a2df8d0b85a40d6a179170f0f57311 (commit)
      from  68f8161910688e280d736d7c187cbf86afd7c826 (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 25f14bddd6a2df8d0b85a40d6a179170f0f57311
Author: Sergey Poznyakoff <gray@gnu.org>
Date:   Thu Aug 14 23:55:14 2014 +0300

    Fix possible coredump in stream library.
    
    * libmailutils/stream/stream.c (mu_stream_strerror): stream can be NULL.

-----------------------------------------------------------------------

Summary of changes:
 libmailutils/stream/stream.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/libmailutils/stream/stream.c b/libmailutils/stream/stream.c
index 0136e9d..ae0a5b4 100644
--- a/libmailutils/stream/stream.c
+++ b/libmailutils/stream/stream.c
@@ -371,6 +371,8 @@ mu_stream_strerror (mu_stream_t stream, int rc)
 {
   const char *str;
 
+  if (!stream)
+    return mu_strerror (rc);
   if (stream->error_string)
     str = stream->error_string (stream, rc);
   else


hooks/post-receive
-- 
GNU Mailutils


