diff --git a/setup.py b/setup.py index 83f0714..8f054df 100755 --- a/setup.py +++ b/setup.py @@ -29,7 +29,7 @@ class InstallCommand(install): setup(name='talon', - version='1.2.12', + version='1.2.14', description=("Mailgun library " "to extract message quotations and signatures."), long_description=open("README.rst").read(), diff --git a/talon/quotations.py b/talon/quotations.py index f6122ff..9999e6a 100644 --- a/talon/quotations.py +++ b/talon/quotations.py @@ -164,6 +164,8 @@ RE_PARENTHESIS_LINK = re.compile("\(https?://") SPLITTER_MAX_LINES = 4 MAX_LINES_COUNT = 1000 +# an extensive research shows that exceeding this limit +# leads to excessive processing time MAX_HTML_LEN = 2794202 QUOT_PATTERN = re.compile('^>+ ?')