[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#862173: jessie-pu: package offlineimap/6.3.4-1



Package: release.debian.org
Severity: normal
Tags: jessie
User: release.debian.org@packages.debian.org
Usertags: pu

Dear Release Team,

I would like to update OfflineIMAP in jessie, to fix the #859478 RC bug.
Backporting the fix from newer versions of the software is too invasive,
so instead I have added a WARNING message, that will prevent users from
using the broken functionality. For more information, please see the
related bug report.

Best,

-- 
Ilias
diff -Nru offlineimap-6.3.4/debian/changelog offlineimap-6.3.4/debian/changelog
--- offlineimap-6.3.4/debian/changelog	2011-08-23 17:27:40.000000000 +0300
+++ offlineimap-6.3.4/debian/changelog	2017-05-09 15:14:10.000000000 +0300
@@ -1,3 +1,15 @@
+offlineimap (6.3.4-1+deb8u1) stable-proposed-updates; urgency=medium
+
+  * Prevent the usage of maxage.
+    The implementation of maxage is broken in this version of OfflineIMAP
+    (v6.3.4) and may even result in data loss. Document the above behavior in
+    the example conf file and also warn the user every time this feature is
+    being used (Closes: #859478).
+  * Set myself as the maintainer.
+    Package has already been adopted in unstable.
+
+ -- Ilias Tsitsimpis <i.tsitsimpis@gmail.com>  Tue, 09 May 2017 15:14:10 +0300
+
 offlineimap (6.3.4-1) unstable; urgency=low
 
   * New upstream release.
diff -Nru offlineimap-6.3.4/debian/control offlineimap-6.3.4/debian/control
--- offlineimap-6.3.4/debian/control	2011-08-23 17:27:40.000000000 +0300
+++ offlineimap-6.3.4/debian/control	2017-04-11 13:08:40.000000000 +0300
@@ -1,7 +1,7 @@
 Source: offlineimap
 Section: mail
 Priority: optional
-Maintainer: John Francesco Ferlito <johnf@inodes.org>
+Maintainer: Ilias Tsitsimpis <i.tsitsimpis@gmail.com>
 Build-Depends: debhelper (>= 7.0.50~)
 Build-Depends-Indep: python-support (>= 0.4.0), python-docutils, quilt
 Standards-Version: 3.9.1
diff -Nru offlineimap-6.3.4/debian/patches/Prevent-usage-of-maxage.patch offlineimap-6.3.4/debian/patches/Prevent-usage-of-maxage.patch
--- offlineimap-6.3.4/debian/patches/Prevent-usage-of-maxage.patch	1970-01-01 02:00:00.000000000 +0200
+++ offlineimap-6.3.4/debian/patches/Prevent-usage-of-maxage.patch	2017-04-11 16:52:45.000000000 +0300
@@ -0,0 +1,43 @@
+Description: Prevent the usage of maxage
+ The implementation of maxage is broken in this version of OfflineIMAP (v6.3.4)
+ and may even result in data loss. Document the above behavior in the example
+ conf file and also warn the user every time this feature is being used.
+Author: Ilias Tsitsimpis <i.tsitsimpis@gmail.com>
+Bug-Debian: https://bugs.debian.org/859478
+Forwarded: no, fixed in newer versions
+
+Index: b/offlineimap.conf
+===================================================================
+--- a/offlineimap.conf
++++ b/offlineimap.conf
+@@ -237,6 +237,10 @@ remoterepository = RemoteExample
+ # calculate the earliest day that would be included in the search and include all 
+ # messages from that day until today.   e.g. maxage = 3 to sync only the last 3 days mail
+ 
++# WARNING: The implementation of maxage is broken in this version of OfflineIMAP
++# and may result in data loss. You should avoid its use, or update to a newer
++# version. For more information, please see https://bugs.debian.org/859478.
++
+ # maxage = 3
+ 
+ 
+Index: b/offlineimap/accounts.py
+===================================================================
+--- a/offlineimap/accounts.py
++++ b/offlineimap/accounts.py
+@@ -169,6 +169,15 @@ class SyncableAccount(Account):
+         self.localrepos  = Repository(self, 'local')
+         self.statusrepos = Repository(self, 'status')
+ 
++        # Warn if maxage is being used, since it is broken on this version.
++        # For more information, see https://bugs.debian.org/859478.
++        maxage = self.getconfint("maxage", -1)
++        if maxage != -1:
++            self.ui.warn("maxage has been enabled for account `%s'."
++                " This feature is broken in the current version of OfflineIMAP"
++                " and may result in data loss. You should avoid its use,"
++                " or update to a newer version." % self.name)
++
+         # Loop account sync if needed (bail out after 3 failures)
+         looping = 3
+         while looping:
diff -Nru offlineimap-6.3.4/debian/patches/series offlineimap-6.3.4/debian/patches/series
--- offlineimap-6.3.4/debian/patches/series	2011-08-23 17:27:40.000000000 +0300
+++ offlineimap-6.3.4/debian/patches/series	2017-04-11 13:08:08.000000000 +0300
@@ -1 +1,2 @@
 0001-Fix-manpage-build-failures-from-inconsistent-heading.patch
+Prevent-usage-of-maxage.patch

Reply to: