Compare commits
4 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
63aa9d4c8d | ||
|
|
26a167c4d7 | ||
|
|
2c6f7ecb50 | ||
|
|
9b9f772944 |
5 changed files with 31 additions and 6 deletions
10
CHANGES.rst
10
CHANGES.rst
|
|
@ -2,11 +2,17 @@ ChangeLog
|
|||
=========
|
||||
|
||||
|
||||
`2.1.0 (2017-01-13) <https://github.com/kdeldycke/maildir-deduplicate/compare/v2.0.1...v2.1.0>`_
|
||||
------------------------------------------------------------------------------------------------
|
||||
`2.1.1 (unreleased) <https://github.com/kdeldycke/maildir-deduplicate/compare/v2.1.0...develop>`_
|
||||
-------------------------------------------------------------------------------------------------
|
||||
|
||||
.. note:: This version is not yet released and is under active development.
|
||||
|
||||
* No changes yet.
|
||||
|
||||
|
||||
`2.1.0 (2017-01-13) <https://github.com/kdeldycke/maildir-deduplicate/compare/v2.0.1...v2.1.0>`_
|
||||
------------------------------------------------------------------------------------------------
|
||||
|
||||
* Fix rendering of changelog link in RST.
|
||||
* Show selected log level in debug mode.
|
||||
* Test builds against Python 3.6 and 3.7-dev, and most recent PyPy targetting
|
||||
|
|
|
|||
19
README.rst
19
README.rst
|
|
@ -42,3 +42,22 @@ Features
|
|||
* Dry-run mode.
|
||||
* Protection against false-positives by checking for size and content
|
||||
differences.
|
||||
|
||||
|
||||
Installation
|
||||
------------
|
||||
|
||||
This package is `available on PyPi
|
||||
<https://pypi.python.org/pypi/maildir-deduplicate>`_, so you can install the
|
||||
latest stable release and its dependencies with a simple ``pip`` call:
|
||||
|
||||
.. code-block:: shell-session
|
||||
|
||||
$ pip install maildir-deduplicate
|
||||
|
||||
|
||||
Documentation
|
||||
-------------
|
||||
|
||||
Docs are `hosted on Read the Docs
|
||||
<https://maildir-deduplicate.readthedocs.io>`_.
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ import logging
|
|||
import sys
|
||||
|
||||
|
||||
__version__ = '2.1.0'
|
||||
__version__ = '2.1.1'
|
||||
|
||||
|
||||
PY2 = sys.version_info[0] == 2
|
||||
|
|
|
|||
|
|
@ -182,8 +182,8 @@ class Mail(object):
|
|||
header = header.lower()
|
||||
# Problematic when reading utf8 emails
|
||||
# this will ensure value is always string
|
||||
if not type(value) is str:
|
||||
value = value.encode()
|
||||
if isinstance(value, bytes):
|
||||
value = value.decode('utf-8', 'replace')
|
||||
value = re.sub(r'\s+', ' ', value).strip()
|
||||
|
||||
# Trim Subject prefixes automatically added by mailing list software,
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ universal = 1
|
|||
|
||||
# https://github.com/peritus/bumpversion#configuration
|
||||
[bumpversion]
|
||||
current_version = 2.1.0
|
||||
current_version = 2.1.1
|
||||
files = ./maildir_deduplicate/__init__.py ./CHANGES.rst
|
||||
allow_dirty = True
|
||||
commit = False
|
||||
|
|
|
|||
Loading…
Reference in a new issue