Hello community, here is the log from the commit of package offlineimap for openSUSE:Factory checked in at 2018-01-30 15:45:05 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/offlineimap (Old) and /work/SRC/openSUSE:Factory/.offlineimap.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "offlineimap" Tue Jan 30 15:45:05 2018 rev:44 rq:570887 version:7.1.5 Changes: -------- --- /work/SRC/openSUSE:Factory/offlineimap/offlineimap.changes 2017-12-12 21:22:28.963837697 +0100 +++ /work/SRC/openSUSE:Factory/.offlineimap.new/offlineimap.changes 2018-01-30 15:45:12.256362417 +0100 @@ -1,0 +2,9 @@ +Tue Jan 30 09:13:51 UTC 2018 - [email protected] + +- update to 7.1.5 +* folder: IMAP: improve search logging +* no UIDPLUS: improve logging on failures. +* maxage: don't consider negative UIDs when computing min UID +* Add missing space to output string. + +------------------------------------------------------------------- Old: ---- offlineimap-7.1.4.tar.gz New: ---- offlineimap-7.1.5.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ offlineimap.spec ++++++ --- /var/tmp/diff_new_pack.vQPpko/_old 2018-01-30 15:45:12.824335902 +0100 +++ /var/tmp/diff_new_pack.vQPpko/_new 2018-01-30 15:45:12.824335902 +0100 @@ -1,7 +1,7 @@ # # spec file for package offlineimap # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: offlineimap -Version: 7.1.4 +Version: 7.1.5 Release: 0 Summary: IMAP/Maildir Synchronization Tool License: GPL-2.0+ ++++++ offlineimap-7.1.4.tar.gz -> offlineimap-7.1.5.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/offlineimap-7.1.4/.github/PULL_REQUEST_TEMPLATE.md new/offlineimap-7.1.5/.github/PULL_REQUEST_TEMPLATE.md --- old/offlineimap-7.1.4/.github/PULL_REQUEST_TEMPLATE.md 2017-10-29 15:23:29.000000000 +0100 +++ new/offlineimap-7.1.5/.github/PULL_REQUEST_TEMPLATE.md 2018-01-13 13:55:23.000000000 +0100 @@ -1,14 +1,4 @@ -> This v1.0 template stands in `.github/`. - -### Peer reviews - -Trick to [fetch the pull -request](https://help.github.com/articles/checking-out-pull-requests-locally): -there is a (read-only) `refs/pull/` namespace. - -``` bash -git fetch OFFICIAL_REPOSITORY_NAME pull/PULL_ID/head:LOCAL_BRANCH_NAME -``` +> This v1.1 template stands in `.github/`. ### This PR diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/offlineimap-7.1.4/Changelog.md new/offlineimap-7.1.5/Changelog.md --- old/offlineimap-7.1.4/Changelog.md 2017-10-29 15:23:29.000000000 +0100 +++ new/offlineimap-7.1.5/Changelog.md 2018-01-13 13:55:23.000000000 +0100 @@ -15,6 +15,43 @@ * The following excerpt is only usefull when rendered in the website. {:toc} +### OfflineIMAP v7.1.5 (2018-01-13) + +#### Notes + +This minor release fixes a bug about maxage failing to upload some emails. Also, +this introduces the snapcraft.yaml to package offlineimap with this packaging +system. + +This release was tested by: + +- Nicolas Sebrecht +- Remi Locherer + + +#### Authors + +- Nicolas Sebrecht (4) +- Evan Dandrea (1) +- John Ferlito (1) + + +#### Features + +- Initial commit of snapcraft.yaml. [Evan Dandrea] + +#### Fixes + +- maxage: don't consider negative UIDs when computing min UID. [Nicolas Sebrecht] +- Add missing space to output string. [John Ferlito] + +#### Changes + +- folder: IMAP: improve search logging. [Nicolas Sebrecht] +- no UIDPLUS: improve logging on failures. [Nicolas Sebrecht] +- github: remove the trick to download the PR. [Nicolas Sebrecht] + + ### OfflineIMAP v7.1.4 (2017-10-29) #### Notes diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/offlineimap-7.1.4/offlineimap/__init__.py new/offlineimap-7.1.5/offlineimap/__init__.py --- old/offlineimap-7.1.4/offlineimap/__init__.py 2017-10-29 15:23:29.000000000 +0100 +++ new/offlineimap-7.1.5/offlineimap/__init__.py 2018-01-13 13:55:23.000000000 +0100 @@ -2,8 +2,8 @@ __productname__ = 'OfflineIMAP' # Expecting trailing "-rcN" or "" for stable releases. -__version__ = "7.1.4" -__copyright__ = "Copyright 2002-2017 John Goerzen & contributors" +__version__ = "7.1.5" +__copyright__ = "Copyright 2002-2018 John Goerzen & contributors" __author__ = "John Goerzen" __author_email__= "[email protected]" __description__ = "Disconnected Universal IMAP Mail Synchronization/Reader Support" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/offlineimap-7.1.4/offlineimap/accounts.py new/offlineimap-7.1.5/offlineimap/accounts.py --- old/offlineimap-7.1.4/offlineimap/accounts.py 2017-10-29 15:23:29.000000000 +0100 +++ new/offlineimap-7.1.5/offlineimap/accounts.py 2018-01-13 13:55:23.000000000 +0100 @@ -518,6 +518,9 @@ # emails). localfolder.cachemessagelist(min_date=date) uids = localfolder.getmessageuidlist() + # Take care to only consider positive uids. Negative UIDs might be + # present due to new emails. + uids = [uid for uid in uids if uid > 0] if len(uids) > 0: # Update the remote cache list for this new min(uids). remotefolder.cachemessagelist(min_uid=min(uids)) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/offlineimap-7.1.4/offlineimap/folder/IMAP.py new/offlineimap-7.1.5/offlineimap/folder/IMAP.py --- old/offlineimap-7.1.4/offlineimap/folder/IMAP.py 2017-10-29 15:23:29.000000000 +0100 +++ new/offlineimap-7.1.5/offlineimap/folder/IMAP.py 2018-01-13 13:55:23.000000000 +0100 @@ -209,11 +209,17 @@ Returns: range(s) for messages or None if no messages are to be fetched.""" - res_type, res_data = imapobj.search(None, search_conditions) - if res_type != 'OK': + try: + res_type, res_data = imapobj.search(None, search_conditions) + if res_type != 'OK': + raise OfflineImapError("SEARCH in folder [%s]%s failed. " + "Search string was '%s'. Server responded '[%s] %s'"% ( + self.getrepository(), self, search_cond, res_type, res_data), + OfflineImapError.ERROR.FOLDER) + except Exception as e: raise OfflineImapError("SEARCH in folder [%s]%s failed. " - "Search string was '%s'. Server responded '[%s] %s'"% ( - self.getrepository(), self, search_cond, res_type, res_data), + "Search string was '%s'. Error: %s"% ( + self.getrepository(), self, search_cond, str(e)), OfflineImapError.ERROR.FOLDER) # Davmail returns list instead of list of one element string. # On first run the first element is empty. @@ -722,22 +728,32 @@ OfflineImapError.ERROR.MESSAGE) if uid == 0: self.ui.warn("savemessage: Server supports UIDPLUS, but" - " we got no usable uid back. APPENDUID reponse was " + " we got no usable UID back. APPENDUID reponse was " "'%s'"% str(resp)) else: - # We don't support UIDPLUS. - uid = self.__savemessage_searchforheader(imapobj, headername, - headervalue) - # See docs for savemessage in Base.py for explanation - # of this and other return values. - if uid == 0: - self.ui.debug('imap', 'savemessage: attempt to get new UID ' - 'UID failed. Search headers manually.') - uid = self.__savemessage_fetchheaders(imapobj, headername, + try: + # We don't use UIDPLUS. + uid = self.__savemessage_searchforheader(imapobj, headername, headervalue) - self.ui.warn("savemessage: Searching mails for new " - "Message-ID failed. Could not determine new UID " - "on %s."% self.getname()) + # See docs for savemessage in Base.py for explanation + # of this and other return values. + if uid == 0: + self.ui.debug('imap', 'savemessage: attempt to get new UID ' + 'UID failed. Search headers manually.') + uid = self.__savemessage_fetchheaders(imapobj, headername, + headervalue) + self.ui.warn("savemessage: Searching mails for new " + "Message-ID failed. Could not determine new UID " + "on %s."% self.getname()) + # Something wrong happened while trying to get the UID. Explain + # the error might be about the 'get UID' process not necesseraly + # the APPEND. + except Exception: + self.ui.warn("%s: could not determine the UID while we got " + "no error while appending the email with '%s: %s'"% + (self.getname(), headername, headervalue) + ) + raise finally: if imapobj: self.imapserver.releaseconnection(imapobj) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/offlineimap-7.1.4/offlineimap/folder/LocalStatus.py new/offlineimap-7.1.5/offlineimap/folder/LocalStatus.py --- old/offlineimap-7.1.4/offlineimap/folder/LocalStatus.py 2017-10-29 15:23:29.000000000 +0100 +++ new/offlineimap-7.1.5/offlineimap/folder/LocalStatus.py 2018-01-13 13:55:23.000000000 +0100 @@ -119,7 +119,7 @@ # Convert from format v1. elif line == (self.magicline % 1): - self.ui._msg('Upgrading LocalStatus cache from version 1' + self.ui._msg('Upgrading LocalStatus cache from version 1 ' 'to version 2 for %s:%s'% (self.repository, self)) self.readstatus_v1(cachefd) cachefd.close() diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/offlineimap-7.1.4/snapcraft.yaml new/offlineimap-7.1.5/snapcraft.yaml --- old/offlineimap-7.1.4/snapcraft.yaml 1970-01-01 01:00:00.000000000 +0100 +++ new/offlineimap-7.1.5/snapcraft.yaml 2018-01-13 13:55:23.000000000 +0100 @@ -0,0 +1,19 @@ +name: offlineimap +version: git +summary: OfflineIMAP +description: | + OfflineIMAP is software that downloads your email mailbox(es) as local + Maildirs. OfflineIMAP will synchronize both sides via IMAP. + +grade: devel +confinement: devmode + +apps: + offlineimap: + command: bin/offlineimap + +parts: + offlineimap: + plugin: python + python-version: python2 + source: .
