Commit a7c8a70c a7c8a70c665ed5c995d47bbe4d0bed16ea55be9c by Sergey Poznyakoff

Version 1.9.92.

* imap4d/list.c (imap4d_list): Fix addslash condition.
1 parent 00795731
2008-08-17 Sergey Poznyakoff <gray@gnu.org.ua>
Version 1.9.92.
* imap4d/list.c (imap4d_list): Fix addslash condition.
Improve folder listing.
* include/mailutils/registrar.h (_mu_record): New method
`_list_p'.
......
GNU mailutils NEWS -- history of user-visible changes. 2008-04-14
GNU mailutils NEWS -- history of user-visible changes. 2008-08-17
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.91:
Version 1.9.92:
* New configuration file format.
......@@ -90,6 +90,8 @@ IP addresses/ports (or even local sockets) simultaneously.
** pop3d: Fixed APOP handling.
** Imap4d supports UNSELECT extension.
** imap4d supports PREAUTH mode.
Three mechanisms are provided for authentifying the connection in
......
......@@ -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.91], [bug-mailutils@gnu.org], [mailutils])
AC_INIT([GNU Mailutils], [1.9.92], [bug-mailutils@gnu.org], [mailutils])
AC_CONFIG_SRCDIR([mailbox/mailbox.c])
AC_CONFIG_AUX_DIR([scripts])
AM_INIT_AUTOMAKE
......
......@@ -217,7 +217,7 @@ imap4d_list (struct imap4d_command *command, imap4d_tokbuf_t tok)
{
size_t seglen = p - wcard;
size_t reflen = strlen (ref);
int addslash = !!(reflen == 0 || ref[reflen-1] != '/');
int addslash = (reflen > 0 && ref[reflen-1] != '/');
size_t len = seglen + reflen + addslash + 1;
ref = realloc (ref, len);
......