Commit 69b1db83 69b1db83fd54b9b3caf44c208506f1f56a3d6f47 by Sergey Poznyakoff

Minor fixes.

* NEWS, configure.ac: Raise version to 1.9.91
* mail/mailline.c (ml_getc): Fix indentation.
* mailbox/mime.c (mu_mime_get_part): Return MU_ERR_NOENT if part
is out of range.
1 parent 1d15947e
2008-07-19 Sergey Poznyakoff <gray@gnu.org.ua>
Minor fixes.
* NEWS, configure.ac: Raise version to 1.9.91
* mail/mailline.c (ml_getc): Fix indentation.
* mailbox/mime.c (mu_mime_get_part): Return MU_ERR_NOENT if part
is out of range.
Keep namespace clean
* libsieve/comparator.c, libsieve/prog.c, libsieve/require.c,
......
GNU mailutils NEWS -- history of user-visible changes. 2008-03-02
GNU mailutils NEWS -- history of user-visible changes. 2008-04-14
Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007,
2008 Free Software Foundation, Inc.
See the end of file for copying conditions.
......@@ -6,7 +6,7 @@ See the end of file for copying conditions.
Please send mailutils bug reports to <bug-mailutils@gnu.org>.
Version 1.9.90:
Version 1.9.91:
* New configuration file format.
......
......@@ -17,7 +17,7 @@ dnl You should have received a copy of the GNU General Public License along
dnl with GNU Mailutils; if not, write to the Free Software Foundation,
dnl Inc. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
AC_INIT([GNU Mailutils], [1.9.90], [bug-mailutils@gnu.org], [mailutils])
AC_INIT([GNU Mailutils], [1.9.91], [bug-mailutils@gnu.org], [mailutils])
AC_CONFIG_SRCDIR([mailbox/mailbox.c])
AC_CONFIG_AUX_DIR([scripts])
AM_INIT_AUTOMAKE
......
......@@ -69,22 +69,22 @@ ml_got_interrupt ()
static int
ml_getc (FILE *stream)
{
unsigned char c;
while (1)
{
if (read (fileno (stream), &c, 1) == 1)
return c;
if (errno == EINTR)
{
if (_interrupted)
break;
/* keep going if we handled the signal */
}
else
break;
}
return EOF;
unsigned char c;
while (1)
{
if (read (fileno (stream), &c, 1) == 1)
return c;
if (errno == EINTR)
{
if (_interrupted)
break;
/* keep going if we handled the signal */
}
else
break;
}
return EOF;
}
void
......
......@@ -903,7 +903,7 @@ mu_mime_get_part (mu_mime_t mime, size_t part, mu_message_t *msg)
if ((ret = mu_mime_get_num_parts (mime, &nmtp_parts)) == 0)
{
if (part < 1 || part > nmtp_parts)
return EINVAL;
return MU_ERR_NOENT;
if (nmtp_parts == 1 && mime->mtp_parts == NULL)
*msg = mime->msg;
else
......