Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-email-reply-parser for openSUSE:Factory checked in at 2021-11-03 17:25:53 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-email-reply-parser (Old) and /work/SRC/openSUSE:Factory/.python-email-reply-parser.new.1890 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-email-reply-parser" Wed Nov 3 17:25:53 2021 rev:2 rq:928872 version:0.5.12 Changes: -------- --- /work/SRC/openSUSE:Factory/python-email-reply-parser/python-email-reply-parser.changes 2020-06-12 21:46:27.856652330 +0200 +++ /work/SRC/openSUSE:Factory/.python-email-reply-parser.new.1890/python-email-reply-parser.changes 2021-11-03 17:26:48.309354918 +0100 @@ -1,0 +2,7 @@ +Tue Nov 2 12:39:14 UTC 2021 - pgaj...@suse.com + +- version update to 0.5.12 + * no upstream changelog +- %check: use %pyunittest rpm macro + +------------------------------------------------------------------- Old: ---- email_reply_parser-0.5.9.tar.gz New: ---- email_reply_parser-0.5.12.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-email-reply-parser.spec ++++++ --- /var/tmp/diff_new_pack.ngrMp3/_old 2021-11-03 17:26:48.697355131 +0100 +++ /var/tmp/diff_new_pack.ngrMp3/_new 2021-11-03 17:26:48.701355133 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-email-reply-parser # -# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,23 +12,23 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-email-reply-parser -Version: 0.5.9 +Version: 0.5.12 Release: 0 -License: MIT Summary: Email reply parser -Url: https://github.com/zapier/email-reply-parser +License: MIT Group: Development/Languages/Python +URL: https://github.com/zapier/email-reply-parser Source: https://github.com/zapier/email-reply-parser/archive/v%{version}.tar.gz#/email_reply_parser-%{version}.tar.gz -BuildRequires: python-rpm-macros BuildRequires: %{python_module setuptools} BuildRequires: fdupes +BuildRequires: python-rpm-macros BuildArch: noarch - %python_subpackages %description @@ -46,7 +46,7 @@ %check export LANG=en_US.UTF-8 -%python_exec setup.py test +%pyunittest discover -v %files %{python_files} %doc README.md ++++++ email_reply_parser-0.5.9.tar.gz -> email_reply_parser-0.5.12.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/email-reply-parser-0.5.9/.gitignore new/email-reply-parser-0.5.12/.gitignore --- old/email-reply-parser-0.5.9/.gitignore 2016-09-01 18:05:14.000000000 +0200 +++ new/email-reply-parser-0.5.12/.gitignore 2020-10-07 19:22:06.000000000 +0200 @@ -1,11 +1,138 @@ -.project -*.pyc -tests/*.pyc -tests/.DS_Store -.pydevproject -.DS_Store -*.egg-info -.project +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] +*$py.class + +# C extensions +*.so + +# Distribution / packaging +.Python +build/ +develop-eggs/ dist/ -dist/* +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +wheels/ +share/python-wheels/ +*.egg-info/ +.installed.cfg +*.egg +MANIFEST + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. +*.manifest +*.spec + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.nox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*.cover +*.py,cover +.hypothesis/ +.pytest_cache/ +cover/ + +# Translations +*.mo +*.pot + +# Django stuff: +*.log +local_settings.py +db.sqlite3 +db.sqlite3-journal + +# Flask stuff: +instance/ +.webassets-cache + +# Scrapy stuff: +.scrapy + +# Sphinx documentation +docs/_build/ + +# PyBuilder +.pybuilder/ +target/ + +# Jupyter Notebook +.ipynb_checkpoints + +# IPython +profile_default/ +ipython_config.py + +# pyenv +# For a library or package, you might want to ignore these files since the code is +# intended to run in multiple environments; otherwise, check them in: +# .python-version + +# pipenv +# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. +# However, in case of collaboration, if having platform-specific dependencies or dependencies +# having no cross-platform support, pipenv may install dependencies that don't work, or not +# install all needed dependencies. +#Pipfile.lock + +# PEP 582; used by e.g. github.com/David-OConnor/pyflow +__pypackages__/ + +# Celery stuff +celerybeat-schedule +celerybeat.pid + +# SageMath parsed files +*.sage.py + +# Environments +.env +.venv +env/ +venv/ +ENV/ +env.bak/ +venv.bak/ + +# Spyder project settings +.spyderproject +.spyproject + +# Rope project settings +.ropeproject + +# mkdocs documentation +/site + +# mypy +.mypy_cache/ +.dmypy.json +dmypy.json + +# Pyre type checker +.pyre/ + +# pytype static type analyzer +.pytype/ +# Cython debug symbols +cython_debug/ \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/email-reply-parser-0.5.9/.travis.yml new/email-reply-parser-0.5.12/.travis.yml --- old/email-reply-parser-0.5.9/.travis.yml 2016-09-01 18:05:14.000000000 +0200 +++ new/email-reply-parser-0.5.12/.travis.yml 2020-10-07 19:22:06.000000000 +0200 @@ -1,18 +1,18 @@ language: python python: - - "2.6" - "2.7" - - "3.2" - - "3.3" - "3.4" + - "3.5" + - "3.6" + - "3.7" + - "3.8" - "pypy" script: python setup.py test deploy: + edge: true provider: pypi - user: zapier - password: - secure: fT6o+OLSLfeA9F0IJLWpN/viId9x7rO++5srN3bZRl5x/MiFDXnYEZRKtV8zZCpMfrXgkFAMJWaxh4etYyfe/BoIZN5iY41uiQakrfKpHHaTsThVvTed5LfJDO0OPojAnyQsXkdaPKefL4F+can3znNZNednQQc/i2F52y9eSUE= + user: __token__ + distributions: sdist bdist_wheel on: tags: true - distributions: sdist bdist_wheel repo: zapier/email-reply-parser diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/email-reply-parser-0.5.9/email_reply_parser/__init__.py new/email-reply-parser-0.5.12/email_reply_parser/__init__.py --- old/email-reply-parser-0.5.9/email_reply_parser/__init__.py 2016-09-01 18:05:14.000000000 +0200 +++ new/email-reply-parser-0.5.12/email_reply_parser/__init__.py 2020-10-07 19:22:06.000000000 +0200 @@ -39,7 +39,7 @@ SIG_REGEX = re.compile(r'(--|__|-\w)|(^Sent from my (\w+\s*){1,3})') QUOTE_HDR_REGEX = re.compile('On.*wrote:$') QUOTED_REGEX = re.compile(r'(>+)') - HEADER_REGEX = re.compile(r'^(From|Sent|To|Subject): .+') + HEADER_REGEX = re.compile(r'^\*?(From|Sent|To|Subject):\*? .+') _MULTI_QUOTE_HDR_REGEX = r'(?!On.*On\s.+?wrote:)(On\s(.+?)wrote:)' MULTI_QUOTE_HDR_REGEX = re.compile(_MULTI_QUOTE_HDR_REGEX, re.DOTALL | re.MULTILINE) MULTI_QUOTE_HDR_REGEX_MULTILINE = re.compile(_MULTI_QUOTE_HDR_REGEX, re.DOTALL) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/email-reply-parser-0.5.9/email_reply_parser/version.py new/email-reply-parser-0.5.12/email_reply_parser/version.py --- old/email-reply-parser-0.5.9/email_reply_parser/version.py 2016-09-01 18:05:14.000000000 +0200 +++ new/email-reply-parser-0.5.12/email_reply_parser/version.py 2020-10-07 19:22:06.000000000 +0200 @@ -1 +1 @@ -VERSION = '0.5.9' +VERSION = '0.5.12' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/email-reply-parser-0.5.9/setup.py new/email-reply-parser-0.5.12/setup.py --- old/email-reply-parser-0.5.9/setup.py 2016-09-01 18:05:14.000000000 +0200 +++ new/email-reply-parser-0.5.12/setup.py 2020-10-07 19:22:06.000000000 +0200 @@ -29,8 +29,11 @@ "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", + "Programming Language :: Python :: 3.5", + "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", ] -) +) \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/email-reply-parser-0.5.9/test/emails/email_2_3.txt new/email-reply-parser-0.5.12/test/emails/email_2_3.txt --- old/email-reply-parser-0.5.9/test/emails/email_2_3.txt 1970-01-01 01:00:00.000000000 +0100 +++ new/email-reply-parser-0.5.12/test/emails/email_2_3.txt 2020-10-07 19:22:06.000000000 +0200 @@ -0,0 +1,20 @@ +Outlook with a reply above headers using unusual format + +*From:* Kim via Site [mailto:nore...@site.com] +*Sent:* Monday, January 15, 2018 2:15 AM +*To:* u...@xxxxx.com +*Subject:* You have a new message! + +Respond to Kim by replying directly to this email + +New message from Kim on Site: + + Ei tale aliquam eum, at vel tale sensibus, an sit vero magna. Vis no veri + clita, movet detraxit inciderint te est. Mel nusquam perfecto repudiandae + ei. Error paulo pri ea. At partem offendit appetere sea, no vis audiam + latine appellantur. + + Sea id aperiam accusam, vel dico omnesque qualisque cu. Cu nec alii euismod + eloquentiam. Ea nisl utinam vis. Est impetus intellegam dissentiet et. Nec + ea rationibus percipitur, eam fugit impetus ad, ad possit semper recusabo + quo. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/email-reply-parser-0.5.9/test/test_email_reply_parser.py new/email-reply-parser-0.5.12/test/test_email_reply_parser.py --- old/email-reply-parser-0.5.9/test/test_email_reply_parser.py 2016-09-01 18:05:14.000000000 +0200 +++ new/email-reply-parser-0.5.12/test/test_email_reply_parser.py 2020-10-07 19:22:06.000000000 +0200 @@ -135,6 +135,12 @@ with open('test/emails/email_2_2.txt') as f: self.assertEqual("Outlook with a reply directly above line", EmailReplyParser.parse_reply(f.read())) + def test_parse_out_just_top_for_outlook_with_unusual_headers_format(self): + with open('test/emails/email_2_3.txt') as f: + self.assertEqual( + "Outlook with a reply above headers using unusual format", + EmailReplyParser.parse_reply(f.read())) + def test_sent_from_iphone(self): with open('test/emails/email_iPhone.txt') as email: self.assertTrue("Sent from my iPhone" not in EmailReplyParser.parse_reply(email.read()))