From MAILER-DAEMON Mon Feb 08 09:25:46 2016 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1aSml8-0000R3-Ef for mharc-commit-mailutils@gnu.org; Mon, 08 Feb 2016 09:25:46 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55392) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSml4-0000P0-MP for commit-mailutils@gnu.org; Mon, 08 Feb 2016 09:25:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aSml3-0007Z7-CS for commit-mailutils@gnu.org; Mon, 08 Feb 2016 09:25:42 -0500 Received: from vcs.savannah.gnu.org ([208.118.235.72]:60341) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSml2-0007Yy-V8 for commit-mailutils@gnu.org; Mon, 08 Feb 2016 09:25:41 -0500 Received: from gray by vcs.savannah.gnu.org with local (Exim 4.72) (envelope-from ) id 1aSml2-0006zA-Cv for commit-mailutils@gnu.org; Mon, 08 Feb 2016 14:25:40 +0000 Date: Mon, 08 Feb 2016 14:25:40 +0000 Message-Id: From: "Sergey Poznyakoff" To: commit-mailutils@gnu.org Subject: [SCM] GNU Mailutils branch, master, updated. release-2.2-751-g561ce8f X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: bfd9e34141b9660f563d917fdaccc975d0c69f17 X-Git-Newrev: 561ce8ffe3472e298bfef315850fd05d818b9082 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.72 X-BeenThere: commit-mailutils@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Commit notices for GNU mailutils List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Feb 2016 14:25:44 -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=561ce8ffe3472e298bfef315850fd05d818b9082 The branch, master has been updated via 561ce8ffe3472e298bfef315850fd05d818b9082 (commit) from bfd9e34141b9660f563d917fdaccc975d0c69f17 (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 561ce8ffe3472e298bfef315850fd05d818b9082 Author: Sergey Poznyakoff Date: Mon Feb 8 16:24:02 2016 +0200 Minor fix * mu/smtp.cÐ(com_list_param): Report if the connection has not been established yet. ----------------------------------------------------------------------- Summary of changes: mu/smtp.c | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/mu/smtp.c b/mu/smtp.c index 52352bb..d9ac79b 100644 --- a/mu/smtp.c +++ b/mu/smtp.c @@ -821,6 +821,12 @@ com_list_param (int argc, char **argv) { int param, i, rc; const char *value; + + if (!smtp) + { + mu_printf ("%s\n", _("no connection yet")); + return 0; + } if (argc > 1) { @@ -833,7 +839,7 @@ com_list_param (int argc, char **argv) } rc = mu_smtp_get_param (smtp, param, &value); if (rc) - mu_diag_funcall (MU_DIAG_ERROR, "mu_smtp_set_param", argv[i], rc); + mu_diag_funcall (MU_DIAG_ERROR, "mu_smtp_get_param", argv[i], rc); else if (value) mu_printf ("%s = %s\n", argv[i], value); else @@ -846,7 +852,7 @@ com_list_param (int argc, char **argv) { rc = mu_smtp_get_param (smtp, paramtab[i].tok, &value); if (rc) - mu_diag_funcall (MU_DIAG_ERROR, "mu_smtp_set_param", + mu_diag_funcall (MU_DIAG_ERROR, "mu_smtp_get_param", paramtab[i].name, rc); else if (value) mu_printf ("%s = %s\n", paramtab[i].name, value); hooks/post-receive -- GNU Mailutils