aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKonstantin Ryabitsev <konstantin@linuxfoundation.org>2023-03-31 14:58:25 -0400
committerKonstantin Ryabitsev <konstantin@linuxfoundation.org>2023-03-31 14:58:25 -0400
commit80ecf568a279c753c1adf1767c20d9fc080b68f0 (patch)
tree65f4fcddc8f320361b48351d8c6881c08ef877af
parent48648eadcaae14247a87fbc3f2f9a48b14e6c5a4 (diff)
downloadbugspray-80ecf568a279c753c1adf1767c20d9fc080b68f0.tar.gz
Do a better job finding signatures
Don't just split on any '-- ' string, it actually has to be on a newline by itself. Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
-rw-r--r--peebz/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/peebz/__init__.py b/peebz/__init__.py
index 78d83b8..d9dc238 100644
--- a/peebz/__init__.py
+++ b/peebz/__init__.py
@@ -645,7 +645,7 @@ def msg_parse_for_bug(msg: email.message.EmailMessage) -> Tuple[str, Tuple[str,
cs = 'utf-8'
cpay = bbody.decode(cs, errors='replace')
# Strip signature if we find it
- chunks = cpay.rsplit('-- ', maxsplit=1)
+ chunks = cpay.rsplit('\n-- \n', maxsplit=1)
cbody = chunks[0]
lsub = b4.LoreSubject(msg.get('Subject', ''))
subject = lsub.subject