commit offlineimap for openSUSE:Factory
Hello community, here is the log from the commit of package offlineimap for openSUSE:Factory checked in at 2017-04-28 09:14:42 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/offlineimap (Old) and /work/SRC/openSUSE:Factory/.offlineimap.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "offlineimap" Fri Apr 28 09:14:42 2017 rev:38 rq:491695 version:7.1.0 Changes: -------- --- /work/SRC/openSUSE:Factory/offlineimap/offlineimap.changes 2017-03-14 10:07:16.366211205 +0100 +++ /work/SRC/openSUSE:Factory/.offlineimap.new/offlineimap.changes 2017-04-28 09:14:49.849158305 +0200 @@ -1,0 +2,12 @@ +Thu Apr 27 19:29:56 UTC 2017 - mimi.vx@gmail.com + +- update to 7.1.0 +* doc: Fix typo in offlineimap.1 man page +* folder: UIDMaps: ignore KeyError failure while removing keys. +* Remove support for the status_backend configuration option. +* folder/IMAP: improve handling of "matchinguids" error while searching headers. +* Remove oneshot switch from systemd services. +* Use oneshot services for systemd timers. +* Create systemd oneshot services. + +------------------------------------------------------------------- Old: ---- offlineimap-7.0.14.tar.gz New: ---- offlineimap-7.1.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ offlineimap.spec ++++++ --- /var/tmp/diff_new_pack.S6AU4t/_old 2017-04-28 09:14:52.028850927 +0200 +++ /var/tmp/diff_new_pack.S6AU4t/_new 2017-04-28 09:14:52.032850363 +0200 @@ -19,7 +19,7 @@ %{!?_userunitdir:%define _userunitdir /usr/lib/systemd/user} Name: offlineimap -Version: 7.0.14 +Version: 7.1.0 Release: 0 Summary: Powerful IMAP/Maildir Synchronization Tool License: GPL-2.0+ @@ -89,6 +89,8 @@ install -D -m 444 contrib/systemd/%{name}.timer %{buildroot}%{_userunitdir}/%{name}.timer install -D -m 444 contrib/systemd/%{name}@.service %{buildroot}%{_userunitdir}/%{name}@.service install -D -m 444 contrib/systemd/%{name}@.timer %{buildroot}%{_userunitdir}/%{name}@.timer +install -D -m 444 contrib/systemd/%{name}-oneshot.service %{buildroot}%{_userunitdir}/%{name}-oneshot.service +install -D -m 444 contrib/systemd/%{name}-oneshot@.service %{buildroot}%{_userunitdir}/%{name}-oneshot@.service %files -f INSTALLED_FILES %defattr(-,root,root) @@ -101,6 +103,8 @@ %{_userunitdir}/%{name}.timer %{_userunitdir}/%{name}@.service %{_userunitdir}/%{name}@.timer +%{_userunitdir}/%{name}-oneshot.service +%{_userunitdir}/%{name}-oneshot@.service %files htmldoc %defattr(-,root,root) ++++++ offlineimap-7.0.14.tar.gz -> offlineimap-7.1.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/offlineimap-7.0.14/Changelog.md new/offlineimap-7.1.0/Changelog.md --- old/offlineimap-7.0.14/Changelog.md 2017-03-11 13:22:18.000000000 +0100 +++ new/offlineimap-7.1.0/Changelog.md 2017-04-16 00:40:54.000000000 +0200 @@ -15,6 +15,41 @@ * The following excerpt is only usefull when rendered in the website. {:toc} +### OfflineIMAP v7.1.0 (2017-04-16) + +#### Notes + +The most important change is the removal of the status_backend configuration +option and that's why we're moving to v7.1.0. + +There are other small bug fixes and improvements. However, the codebase didn't +change much since v7.0.14. + +#### Authors + +- Nicolas Sebrecht (6) +- benutzer193 (4) +- Ilias Tsitsimpis (1) + +#### Fixes + +- doc: Fix typo in offlineimap.1 man page. [Ilias Tsitsimpis] +- README: we moved to imaplib2 v2.57. [Nicolas Sebrecht] +- README: mark porting to py3 as stalled. [Nicolas Sebrecht] +- folder: UIDMaps: ignore KeyError failure while removing keys. [Nicolas Sebrecht] + +#### Changes + +- Remove support for the status_backend configuration option. [Nicolas Sebrecht] +- folder/IMAP: improve handling of "matchinguids" error while searching headers. [Nicolas Sebrecht] +- Adjust README to systemd service file changes. [benutzer193] +- Remove oneshot switch from systemd services. [benutzer193] +- Use oneshot services for systemd timers. [benutzer193] +- Create systemd oneshot services. [benutzer193] +- website-doc.sh: versions.yml: set versions in order. [Nicolas Sebrecht] + + + ### OfflineIMAP v7.0.14 (2017-03-11) #### Notes diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/offlineimap-7.0.14/README.md new/offlineimap-7.1.0/README.md --- old/offlineimap-7.0.14/README.md 2017-03-11 13:22:18.000000000 +0100 +++ new/offlineimap-7.1.0/README.md 2017-04-16 00:40:54.000000000 +0200 @@ -93,9 +93,9 @@ ## Requirements & dependencies * Python v2.7+ -* Python v3.4+ ***(experimental: [see known issues](https://github.com/OfflineIMAP/offlineimap/issues?q=is%3Aissue+is%3Aopen+lab... +* Python v3.4+ ***[STALLED] (experimental: [see known issues](https://github.com/OfflineIMAP/offlineimap/issues?q=is%3Aissue+is%3Aopen+lab... * six (required) -* imaplib2 >= 2.55 (optional) +* imaplib2 >= 2.57 (optional) ## Documentation diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/offlineimap-7.0.14/contrib/systemd/README.md new/offlineimap-7.1.0/contrib/systemd/README.md --- old/offlineimap-7.0.14/contrib/systemd/README.md 2017-03-11 13:22:18.000000000 +0100 +++ new/offlineimap-7.1.0/contrib/systemd/README.md 2017-04-16 00:40:54.000000000 +0200 @@ -40,7 +40,7 @@ offlineimap may not return successfully after a suspend and resume. To make use of this, users could add the following to the [Service] section of -their systemd offlineimap service file (restart every 5 minutes): +their corresponding systemd offlineimap-oneshot service file (restart every 5 minutes): ``` conf Restart=on-watchdog diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/offlineimap-7.0.14/contrib/systemd/offlineimap-oneshot.service new/offlineimap-7.1.0/contrib/systemd/offlineimap-oneshot.service --- old/offlineimap-7.0.14/contrib/systemd/offlineimap-oneshot.service 1970-01-01 01:00:00.000000000 +0100 +++ new/offlineimap-7.1.0/contrib/systemd/offlineimap-oneshot.service 2017-04-16 00:40:54.000000000 +0200 @@ -0,0 +1,13 @@ +[Unit] +Description=Offlineimap Service (oneshot) + +[Service] +Type=oneshot +ExecStart=/usr/bin/offlineimap -o -u syslog +# Give 12 seconds for offlineimap to gracefully stop before hard killing it. +TimeoutStopSec=12 +#Restart=on-watchdog +#WatchdogSec=300 + +[Install] +WantedBy=mail.target diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/offlineimap-7.0.14/contrib/systemd/offlineimap-oneshot@.service new/offlineimap-7.1.0/contrib/systemd/offlineimap-oneshot@.service --- old/offlineimap-7.0.14/contrib/systemd/offlineimap-oneshot@.service 1970-01-01 01:00:00.000000000 +0100 +++ new/offlineimap-7.1.0/contrib/systemd/offlineimap-oneshot@.service 2017-04-16 00:40:54.000000000 +0200 @@ -0,0 +1,11 @@ +[Unit] +Description=Offlineimap Service for account %i (oneshot) + +[Service] +Type=oneshot +ExecStart=/usr/bin/offlineimap -o -a %i -u syslog +#Restart=on-watchdog +#WatchdogSec=300 + +[Install] +WantedBy=mail.target diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/offlineimap-7.0.14/contrib/systemd/offlineimap.service new/offlineimap-7.1.0/contrib/systemd/offlineimap.service --- old/offlineimap-7.0.14/contrib/systemd/offlineimap.service 2017-03-11 13:22:18.000000000 +0100 +++ new/offlineimap-7.1.0/contrib/systemd/offlineimap.service 2017-04-16 00:40:54.000000000 +0200 @@ -2,12 +2,7 @@ Description=Offlineimap Service [Service] -Type=oneshot -ExecStart=/usr/bin/offlineimap -o -u syslog -# Give 12 seconds for offlineimap to gracefully stop before hard killing it. -TimeoutStopSec=12 -#Restart=on-watchdog -#WatchdogSec=300 +ExecStart=/usr/bin/offlineimap -u syslog [Install] WantedBy=mail.target diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/offlineimap-7.0.14/contrib/systemd/offlineimap.timer new/offlineimap-7.1.0/contrib/systemd/offlineimap.timer --- old/offlineimap-7.0.14/contrib/systemd/offlineimap.timer 2017-03-11 13:22:18.000000000 +0100 +++ new/offlineimap-7.1.0/contrib/systemd/offlineimap.timer 2017-04-16 00:40:54.000000000 +0200 @@ -3,7 +3,7 @@ [Timer] OnUnitInactiveSec=15m -Unit=offlineimap.service +Unit=offlineimap-oneshot.service [Install] WantedBy=mail.target diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/offlineimap-7.0.14/contrib/systemd/offlineimap@.service new/offlineimap-7.1.0/contrib/systemd/offlineimap@.service --- old/offlineimap-7.0.14/contrib/systemd/offlineimap@.service 2017-03-11 13:22:18.000000000 +0100 +++ new/offlineimap-7.1.0/contrib/systemd/offlineimap@.service 2017-04-16 00:40:54.000000000 +0200 @@ -2,10 +2,7 @@ Description=Offlineimap Service for account %i [Service] -Type=oneshot -ExecStart=/usr/bin/offlineimap -o -a %i -u syslog -#Restart=on-watchdog -#WatchdogSec=300 +ExecStart=/usr/bin/offlineimap -a %i -u syslog [Install] WantedBy=mail.target diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/offlineimap-7.0.14/contrib/systemd/offlineimap@.timer new/offlineimap-7.1.0/contrib/systemd/offlineimap@.timer --- old/offlineimap-7.0.14/contrib/systemd/offlineimap@.timer 2017-03-11 13:22:18.000000000 +0100 +++ new/offlineimap-7.1.0/contrib/systemd/offlineimap@.timer 2017-04-16 00:40:54.000000000 +0200 @@ -3,7 +3,7 @@ [Timer] OnUnitInactiveSec=15m -Unit=offlineimap@%i.service +Unit=offlineimap-oneshot@%i.service [Install] WantedBy=mail.target diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/offlineimap-7.0.14/docs/offlineimap.known_issues.txt new/offlineimap-7.1.0/docs/offlineimap.known_issues.txt --- old/offlineimap-7.0.14/docs/offlineimap.known_issues.txt 2017-03-11 13:22:18.000000000 +0100 +++ new/offlineimap-7.1.0/docs/offlineimap.known_issues.txt 2017-04-16 00:40:54.000000000 +0200 @@ -120,7 +120,7 @@ - oauth2handler got: {u'error': u'invalid_grant'} + -In such case, we had report that generating a new refesh token from the same +In such case, we had reports that generating a new refresh token from the same client ID and secret can help. + .Google documentation on "invalid_grant" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/offlineimap-7.0.14/docs/offlineimap.txt new/offlineimap-7.1.0/docs/offlineimap.txt --- old/offlineimap-7.0.14/docs/offlineimap.txt 2017-03-11 13:22:18.000000000 +0100 +++ new/offlineimap-7.1.0/docs/offlineimap.txt 2017-04-16 00:40:54.000000000 +0200 @@ -228,10 +228,10 @@ The historical status cache is a plain text file that writes out the complete file for each single new message (or even changed flag) to a temporary file. If you have plenty of files in a folder, this is a few hundred kilo to megabytes -for each mail and is bound to make things slow. The latest default status cache +for each mail and is bound to make things slow. The latest status cache is sqlite. This saves plenty of disk activity. The sqlite engine and the Python -sqlite module must be installed. Enable the 'status_backend = plain' setting in -'offlineimap.conf' for legacy compatibility with versions prior to '6.4.0'. +sqlite module must be installed. The historical plain status cache is not +supported anymore. + If you switch the backend from plain to sqlite, you may want to delete the old cache directory in '<metadata>/Account-<account>/LocalStatus' manually (the diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/offlineimap-7.0.14/docs/website-doc.sh new/offlineimap-7.1.0/docs/website-doc.sh --- old/offlineimap-7.0.14/docs/website-doc.sh 2017-03-11 13:22:18.000000000 +0100 +++ new/offlineimap-7.1.0/docs/website-doc.sh 2017-04-16 00:40:54.000000000 +0200 @@ -58,7 +58,7 @@ for version in $(ls "$DESTBASE" -1 | sort -nr) do echo "- $version" - done >> "$VERSIONS_YML" + done | sort -V >> "$VERSIONS_YML" } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/offlineimap-7.0.14/offlineimap/__init__.py new/offlineimap-7.1.0/offlineimap/__init__.py --- old/offlineimap-7.0.14/offlineimap/__init__.py 2017-03-11 13:22:18.000000000 +0100 +++ new/offlineimap-7.1.0/offlineimap/__init__.py 2017-04-16 00:40:54.000000000 +0200 @@ -2,7 +2,7 @@ __productname__ = 'OfflineIMAP' # Expecting trailing "-rcN" or "" for stable releases. -__version__ = "7.0.14" +__version__ = "7.1.0" __copyright__ = "Copyright 2002-2017 John Goerzen & contributors" __author__ = "John Goerzen" __author_email__= "offlineimap-project@lists.alioth.debian.org" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/offlineimap-7.0.14/offlineimap/folder/IMAP.py new/offlineimap-7.1.0/offlineimap/folder/IMAP.py --- old/offlineimap-7.0.14/offlineimap/folder/IMAP.py 2017-03-11 13:22:18.000000000 +0100 +++ new/offlineimap-7.1.0/offlineimap/folder/IMAP.py 2017-04-16 00:40:54.000000000 +0200 @@ -392,9 +392,12 @@ self.ui.debug('imap', '__savemessage_searchforheader: matchinguids now ' + repr(matchinguids)) if len(matchinguids) != 1 or matchinguids[0] is None: - raise ValueError("While attempting to find UID for message with " - "header %s, got wrong-sized matchinguids of %s"% - (headername, str(matchinguids))) + raise OfflineImapError( + "While attempting to find UID for message with " + "header %s, got wrong-sized matchinguids of %s"% + (headername, str(matchinguids)), + OfflineImapError.ERROR.MESSAGE + ) return int(matchinguids[0]) def __savemessage_fetchheaders(self, imapobj, headername, headervalue): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/offlineimap-7.0.14/offlineimap/folder/UIDMaps.py new/offlineimap-7.1.0/offlineimap/folder/UIDMaps.py --- old/offlineimap-7.0.14/offlineimap/folder/UIDMaps.py 2017-03-11 13:22:18.000000000 +0100 +++ new/offlineimap-7.1.0/offlineimap/folder/UIDMaps.py 2017-04-16 00:40:54.000000000 +0200 @@ -142,8 +142,22 @@ for luid in self.diskl2r.keys(): if not luid in reallist: ruid = self.diskl2r[luid] - del self.diskr2l[ruid] - del self.diskl2r[luid] + #XXX: the following KeyError are sightly unexpected. This + # would require more digging to understand how it's + # possible. + errorMessage = ("unexpected error: key {} was not found " + "in memory, see " + "https://github.com/OfflineIMAP/offlineimap/issues/445" + " to know more." + ) + try: + del self.diskr2l[ruid] + except KeyError as e: + self.ui.warn(errorMessage.format(ruid)) + try: + del self.diskl2r[luid] + except KeyError as e: + self.ui.warn(errorMessage.format(ruid)) # Now, assign negative UIDs to local items. self._savemaps() diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/offlineimap-7.0.14/offlineimap/repository/LocalStatus.py new/offlineimap-7.1.0/offlineimap/repository/LocalStatus.py --- old/offlineimap-7.0.14/offlineimap/repository/LocalStatus.py 2017-03-11 13:22:18.000000000 +0100 +++ new/offlineimap-7.1.0/offlineimap/repository/LocalStatus.py 2017-04-16 00:40:54.000000000 +0200 @@ -20,31 +20,37 @@ from offlineimap.folder.LocalStatus import LocalStatusFolder from offlineimap.folder.LocalStatusSQLite import LocalStatusSQLiteFolder from offlineimap.repository.Base import BaseRepository +from offlineimap.error import OfflineImapError class LocalStatusRepository(BaseRepository): def __init__(self, reposname, account): BaseRepository.__init__(self, reposname, account) - # class and root for all backends + # class and root for all backends. self.backends = {} self.backends['sqlite'] = { 'class': LocalStatusSQLiteFolder, 'root': os.path.join(account.getaccountmeta(), 'LocalStatus-sqlite') } - self.backends['plain'] = { 'class': LocalStatusFolder, 'root': os.path.join(account.getaccountmeta(), 'LocalStatus') } - # Set class and root for the configured backend - self.setup_backend(self.account.getconf('status_backend', 'sqlite')) + if self.account.getconf('status_backend', None) is not None: + raise OfflineImapError( + "the 'status_backend' configuration option is not supported" + " anymore; please, remove this configuration option.", + OfflineImapError.ERROR.REPO + ) + # Set class and root for sqlite. + self.setup_backend('sqlite') if not os.path.exists(self.root): os.mkdir(self.root, 0o700) - # self._folders is a dict of name:LocalStatusFolders() + # self._folders is a dict of name:LocalStatusFolders(). self._folders = {} def _instanciatefolder(self, foldername): @@ -56,10 +62,6 @@ self.root = self.backends[backend]['root'] self.LocalStatusFolderClass = self.backends[backend]['class'] - else: - raise SyntaxWarning("Unknown status_backend '%s' for account '%s'"% - (backend, self.account.name)) - def import_other_backend(self, folder): for bk, dic in self.backends.items(): # Skip folder's own type. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/offlineimap-7.0.14/offlineimap.conf new/offlineimap-7.1.0/offlineimap.conf --- old/offlineimap-7.0.14/offlineimap.conf 2017-03-11 13:22:18.000000000 +0100 +++ new/offlineimap-7.1.0/offlineimap.conf 2017-04-16 00:40:54.000000000 +0200 @@ -316,14 +316,6 @@ # This option stands in the [Account Test] section. # -# The historical backend is 'plain' which writes out the state in plain text -# files. See manual. -# -#status_backend = sqlite - - -# This option stands in the [Account Test] section. -# # If you have a limited amount of bandwidth available you can exclude larger # messages (e.g. those with large attachments etc). If you do this it will # appear to Offlineimap that these messages do not exist at all. They will not
participants (1)
-
root@hilbert.suse.de