[re-sent inline since attachment was not accepted by mailing list]
Hi,
I'm forwarding a bugfix patch from a Debian user. Should we just apply it?
bye,
Roland
Subject:
Bug#472080: gnubiff: imap error
From:
Jan Outrata <outrata@...>
Date:
Fri, 21 Mar 2008 22:54:23 +0100
To:
Debian Bug Tracking System <submit@...>
Package: gnubiff
Version: 2.2.3-1
Severity: normal
Tags: patch
If there are some new messages in an IMAPS mailbox and a single last
new message after some messages which are not new, gnubiff reports
an error while fetching new messages from such a mailbox.
This is because of badly formed list of new messages to be fetched,
where the uid of the single last new message is missing. Then the
equality check on the number of new messages and messages fetched fails.
A simple fix is attached.
-- System Information:
Debian Release: 4.0
APT prefers stable
APT policy: (500, 'stable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-6-686
Locale: LANG=cs_CZ.UTF-8, LC_CTYPE=cs_CZ.UTF-8 (charmap=UTF-8)
Versions of packages gnubiff depends on:
ii libart-2.0-2 2.3.17-1 Library of functions for 2D
graphi
ii libatk1.0-0 1.12.4-3 The ATK accessibility toolkit
ii libbonobo2-0 2.14.0-3 Bonobo CORBA interfaces library
ii libbonoboui2-0 2.14.0-5 The Bonobo UI library
ii libc6 2.3.6.ds1-13etch5 GNU C Library: Shared libraries
ii libcairo2 1.2.4-4 The Cairo 2D vector
graphics libra
ii libfam0 2.7.0-12 Client library to control
the FAM
ii libfontconfig1 2.4.2-1.2 generic font configuration
library
ii libgcc1 1:4.1.1-21 GCC support library
ii libgconf2-4 2.16.1-1 GNOME configuration
database syste
ii libglade2-0 1:2.6.0-4 library to load .glade
files at ru
ii libglib2.0-0 2.12.4-2 The GLib library of C routines
ii libgnome-keyring0 0.6.0-3 GNOME keyring services library
ii libgnome2-0 2.16.0-2 The GNOME 2 library -
runtime file
ii libgnomecanvas2-0 2.14.0-2 A powerful object-oriented
display
ii libgnomeui-0 2.14.1-2 The GNOME 2 libraries (User
Interf
ii libgnomevfs2-0 1:2.14.2-7 GNOME virtual file-system
(runtime
ii libgtk2.0-0 2.8.20-7 The GTK+ graphical user
interface
ii libice6 1:1.0.1-2 X11 Inter-Client Exchange
library
ii liborbit2 1:2.14.3-0.2 libraries for ORBit2 - a
CORBA ORB
ii libpanel-applet2-0 2.14.3-6 library for GNOME 2 panel
applets
ii libpango1.0-0 1.14.8-5 Layout and rendering of
internatio
ii libpopt0 1.10-3 lib for parsing cmdline
parameters
ii libsm6 1:1.0.1-3 X11 Session Management library
ii libssl0.9.8 0.9.8c-4etch1 SSL shared libraries
ii libstdc++6 4.1.1-21 The GNU Standard C++ Library v3
ii libx11-6 2:1.0.3-7 X11 client-side library
ii libxcursor1 1.1.7-4 X cursor management library
ii libxext6 1:1.0.1-2 X11 miscellaneous extension
librar
ii libxfixes3 1:4.0.1-5 X11 miscellaneous 'fixes'
extensio
ii libxi6 1:1.0.1-4 X11 Input extension library
ii libxinerama1 1:1.0.1-4.1 X11 Xinerama extension library
ii libxml2 2.6.27.dfsg-2 GNOME XML library
ii libxrandr2 2:1.1.0.2-5 X11 RandR extension library
ii libxrender1 1:0.9.1-3 X Rendering Extension
client libra
ii sox 12.17.9-1 A universal sound sample
translato
gnubiff recommends no packages.
-- no debconf information
-- Jan Outrata
diff -Nru gnubiff-2.2.3.old/src/support.h gnubiff-2.2.3/src/support.h
--- gnubiff-2.2.3.old/src/support.h 2006-01-14 23:23:23.000000000 +0100
+++ gnubiff-2.2.3/src/support.h 2008-03-21 22:44:29.000000000 +0100
@@ -129,6 +129,9 @@
if (last > inf_bound)
result << range << last;
+ if ((pos == end) && (last != num))
+ result << sep << num;
+
// Save new number
inf_bound = last = num;
}
|