summaryrefslogtreecommitdiff
path: root/alot/commands/thread.py
diff options
context:
space:
mode:
authorHamish Downer <hamish@foobacca.co.uk>2013-10-12 20:26:02 +0100
committerHamish Downer <hamish@foobacca.co.uk>2013-10-12 20:28:11 +0100
commit31a6f7da2d0fbd76005dbe53144e57a2eb2e8de2 (patch)
tree87f89bfef06c5c4baf280a53762bc75111e31ce3 /alot/commands/thread.py
parent0711cf8efaf1a4cca24617c3406210a415006457 (diff)
Check for "Re:" at start of subject in case insensitive manner
To avoid a subject ending up like: "Re: RE: RE: RE: original subject" That I've seen a few times. The fix is to lower case the subject and the strings to compare against before calling startwith()
Diffstat (limited to 'alot/commands/thread.py')
-rw-r--r--alot/commands/thread.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/alot/commands/thread.py b/alot/commands/thread.py
index 54e6a408..47d72c4c 100644
--- a/alot/commands/thread.py
+++ b/alot/commands/thread.py
@@ -149,7 +149,7 @@ class ReplyCommand(Command):
subject = reply_subject_hook(subject)
else:
rsp = settings.get('reply_subject_prefix')
- if not subject.startswith(('Re:', rsp)):
+ if not subject.lower().startswith(('re:', rsp.lower())):
subject = rsp + subject
envelope.add('Subject', subject)