Make signature separator regexp stricter to avoid wrong positives

Authored by Erik Quaeghebeur <kde@equaeghe.nospammail.net> on Feb 8 2018, 2:21 PM.

Description

Make signature separator regexp stricter to avoid wrong positives

The signature separator regexp includes a pattern for the footer
separator used by default by Mailman (until recently [*]), captured
as a ‘line’ of 45 or more underscores. Unsurprisingly there are
messages that include lines of underscores not meant to be
signature separators. For me those had quite a bit more than
45 underscores. So this patch introduces an upper bound (of 55)
in the pattern to try and make a better distinction. (Of course it
would be best to know what Mailman used as a default, but I
have not been able to determine this; in my example mails, it
was 47.)

Change-Id: I83b40811d98efaf23a6a84d469b0d809a2340a90

Details

Committed
Erik Quaeghebeur <kde@equaeghe.nospammail.net>Feb 8 2018, 2:21 PM
Parents
R546:8dc87a95797a: update e-mail address Erik Quaeghebeur
Branches
Unknown
Tags
Unknown
References
refs/changes/90/990/1
Erik Quaeghebeur <kde@equaeghe.nospammail.net> committed R546:893d049e1adb: Make signature separator regexp stricter to avoid wrong positives (authored by Erik Quaeghebeur <kde@equaeghe.nospammail.net>).Feb 8 2018, 2:21 PM